Skip to content

Commit

Permalink
Add fallback provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ardier16 committed Dec 20, 2023
1 parent 271db6d commit e0e1e64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/localization/resources/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,13 @@ const CredentialsTile: FC<Props> = ({ 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
}
/>
<p className='credential-tile__footer-provider-name'>
{t(`tiles.${detectProviderFromVC(credential)}`)}
{t(`tiles.${detectProviderFromVC(credential) ?? 'Unknown'}`)}
</p>
</div>
</div>
Expand Down

0 comments on commit e0e1e64

Please sign in to comment.