Skip to content

Commit

Permalink
Merge pull request #91 from the-commons-project/shic-missing_data
Browse files Browse the repository at this point in the history
fixed comment on sanity check
  • Loading branch information
surfdoc authored Jun 11, 2024
2 parents f212e8f + 5b23ea5 commit 9289c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/SHX.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async function _verifySHX(shx, passcode) {
for (const i in resolved.rawBundles) {
addRawBundle(statusObj, resolved.rawBundles[i]);
}
// Check if the 'section' field is missing or empty in each FHIR bundle
// Check if no entry in each FHIR bundle
statusObj.bundles.forEach(bundle => {
if (!bundle.fhir || !bundle.fhir.entry) {
throw new DataMissingError("The provided Smart Health Link does not contain any data.");
Expand Down

0 comments on commit 9289c55

Please sign in to comment.