Skip to content

Commit

Permalink
OpenG2P Beneficiary Card Rendering fix. (#1313)
Browse files Browse the repository at this point in the history
* OpenG2P Beneficiary Card Rendering fix.

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>

* OpenG2P Beneficiary Card Rendering fix.

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>

---------

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>
  • Loading branch information
vijay151096 authored Feb 29, 2024
1 parent e83144c commit 029946d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/VC/common/VCUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const getFieldValue = (
);
default: {
const fieldValue = verifiableCredential?.credentialSubject[field];
if (Array.isArray(fieldValue) && typeof fieldValue[0] != Object) {
if (Array.isArray(fieldValue) && typeof fieldValue[0] != 'object') {
return fieldValue;
}
return getLocalizedField(fieldValue);
Expand Down

0 comments on commit 029946d

Please sign in to comment.