Skip to content

Commit

Permalink
fix: dapp name fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSinclair committed Sep 24, 2024
1 parent 1679b09 commit 6881af1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ export const AppConnectionNudgeBanner = ({
</Inline>
<TextOverflow color="label" size="14pt" weight="bold">
{i18n.t('app_connection_switcher.banner.connect_to', {
appName: dappMetadata?.appName || dappMetadata?.appHost,
appName:
dappMetadata?.appName ||
dappMetadata?.appHost ||
'dApp',
})}
</TextOverflow>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const AppConnectionWatcher = () => {
if (showNudgeSheet) setShowNudgeSheet(false);
triggerToast({
title: i18n.t('app_connection_switcher.banner.app_connected', {
appName: dappMetadata?.appName || dappMetadata?.appHostName,
appName: dappMetadata?.appName || dappMetadata?.appHostName || 'dApp',
}),
description: chainsLabel[activeSession?.chainId || ChainId.mainnet],
});
Expand Down

0 comments on commit 6881af1

Please sign in to comment.