diff --git a/src/pages/Accounts/components/AccountItem.tsx b/src/pages/Accounts/components/AccountItem.tsx index abe4a31d..bd753d06 100644 --- a/src/pages/Accounts/components/AccountItem.tsx +++ b/src/pages/Accounts/components/AccountItem.tsx @@ -269,7 +269,14 @@ export const AccountItem = forwardRef( alignItems: 'center', }} > - + ev.stopPropagation(), + }, + }} + > { - switch (type) { - case NetworkVMType.BITCOIN: - return 'AccountSelectorBtcAddressCopied'; - case NetworkVMType.EVM: - return 'AccountSelectorEthAddressCopied'; - case NetworkVMType.AVM: - return 'AccountSelectorAVMAddressCopied'; - case NetworkVMType.PVM: - return 'AccountSelectorPVMAddressCopied'; - default: - return 'AccountSelectorAddressCopied'; - } + // We remap BTC and EVM because we used those in older event names + const normalizedType = + type === NetworkVMType.BITCOIN + ? 'Btc' + : type === NetworkVMType.EVM + ? 'Eth' + : type; + + return `AccountSelector${normalizedType}AddressCopied`; };