Skip to content

Commit

Permalink
fix (#17): Unknown labels on transaction screen for MetaMask and impo…
Browse files Browse the repository at this point in the history
…rted accounts
  • Loading branch information
mlallai committed Aug 4, 2023
1 parent f5217a2 commit 5bd01b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/UI/AddressInputs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,9 @@ export const AddressFrom = (props) => {
fromAccountAddress,
layout = 'horizontal',
} = props;
const isImportedOrHardwareAccount = getAddressAccountType(fromAccountAddress);

const metamaskLabel = 'MetaMask'
const isImportedOrHardwareAccount = getAddressAccountType(fromAccountAddress) !== metamaskLabel ;
const accountLabel = isImportedOrHardwareAccount
? getLabelTextByAddress(fromAccountAddress)
: '';
Expand Down

0 comments on commit 5bd01b8

Please sign in to comment.