Skip to content

Commit

Permalink
chore: show title case chain name as the notify
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-1979 committed Sep 26, 2024
1 parent a2d2c47 commit 8704eb1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import { useEffect, useRef } from 'react';

import { toTitleCase } from '../fullscreen/governance/utils/util';
import { useAlerts, useInfo, useTranslation } from '.';

/**
Expand All @@ -20,7 +21,7 @@ export default function useNotifyOnChainChange (address: string | undefined): un
if (chainName && ref.current && ref.current !== chainName) {
notify(
t('{{accountName}} default chain switched to {{chainName}}.',
{ replace: { accountName: accountName || 'Unknown', chainName } }),
{ replace: { accountName: accountName || 'Unknown', chainName: toTitleCase(chainName) } }),
'info'
);
}
Expand Down

0 comments on commit 8704eb1

Please sign in to comment.