Skip to content

Commit

Permalink
added fix for getTokenData (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarhindi authored Apr 15, 2024
1 parent 745ac85 commit 6c477ed
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,12 @@ export function getTokenData(attributeId: string, attributes: Attribute[], recor
if (!attributes) return null;
if (attributeId == FULL_RECORD_ID) return null;
if (!recordRequests.token) return null;
for (const att of recordRequests.token.attributes) {
if (att.attributeId == attributeId) return att;
try {
for (const att of recordRequests.token.attributes) {
if (att.attributeId == attributeId) return att;
}
} catch (e) {
return null;
}
return null;
}
Expand Down

0 comments on commit 6c477ed

Please sign in to comment.