Skip to content

Commit

Permalink
minor updates to nadac
Browse files Browse the repository at this point in the history
  • Loading branch information
KunaalAgarwal committed Aug 7, 2023
1 parent 6287fb9 commit 4d97be4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/plot/nadac.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ async function plotNadacMed(ndcs, layout, div, axis) {
return plot(data, layout, "line", div);
}

function parseSelectedMeds(meds){
async function parseSelectedMeds(meds){
let medObjArray = [];
meds.forEach(med => {
const medNdcs = getNdcFromMed(med);
for (const med of meds) {
const medNdcs = await getNdcFromMed(med);
medNdcs.forEach(ndc => {
medObjArray.push({medName: med, ndc: ndc})
})
})
}
return medObjArray;
}

Expand Down

0 comments on commit 4d97be4

Please sign in to comment.