diff --git a/src/localization/resources/en.json b/src/localization/resources/en.json index b0e2383..f107b06 100644 --- a/src/localization/resources/en.json +++ b/src/localization/resources/en.json @@ -17,8 +17,8 @@ "WorldCoin": "Worldcoin", "Unstoppable": "Unstoppable Domains", "GitCoin": "Gitcoin Passport", - "Civic": "Civic" - + "Civic": "Civic", + "Unknown": "Unknown" }, "mobile-device-message": { "title": "Mobile version is not yet available.", diff --git a/src/pages/ProfilePage/components/CredentialsTile/CredentialsTile.tsx b/src/pages/ProfilePage/components/CredentialsTile/CredentialsTile.tsx index 237affc..8575d03 100644 --- a/src/pages/ProfilePage/components/CredentialsTile/CredentialsTile.tsx +++ b/src/pages/ProfilePage/components/CredentialsTile/CredentialsTile.tsx @@ -67,10 +67,13 @@ const CredentialsTile: FC = ({ credential }) => { width={16} height={16} className='credential-tile__footer-provider-icon' - name={IconNames[detectProviderFromVC(credential) as IconNamesType]} + name={ + IconNames[detectProviderFromVC(credential) as IconNamesType] ?? + IconNames.Proof + } />

- {t(`tiles.${detectProviderFromVC(credential)}`)} + {t(`tiles.${detectProviderFromVC(credential) ?? 'Unknown'}`)}