Skip to content

Commit

Permalink
[Issue 2501] Extension - Recheck display account name in case same ad…
Browse files Browse the repository at this point in the history
…dress ( generic <-> generic )
  • Loading branch information
Thiendekaco committed Jul 26, 2024
1 parent 748bda6 commit 6b2ec7c
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,10 @@ const Component: React.FC<Props> = (props: Props) => {

const existedAccount = accounts.find((acc) => acc.address === originAddress && acc.genesisHash === selectedChain?.genesisHash);
const disabled = !!existedAccount;
const accountName = existedAccount?.name ? existedAccount.name : item.name;

return (
<AccountItemWithName
accountName={accountName}
accountName={item.name}
address={chainMigrateMode ? originAddress : item.address}
className={CN({ disabled: disabled })}
direction='vertical'
Expand Down Expand Up @@ -316,9 +315,9 @@ const Component: React.FC<Props> = (props: Props) => {
</div>
<ChainSelector
items={networks}
label={t('Select Ledger App')}
label={t('Select Ledger app')}
onChange={onChainChange}
placeholder={t('Select Ledger App')}
placeholder={t('Select Ledger app')}
value={chain}
/>
{
Expand Down

0 comments on commit 6b2ec7c

Please sign in to comment.