From a23374e32b9f68c55e54a1ffd091941bda17f56d Mon Sep 17 00:00:00 2001 From: woodenfurniture <125113430+woodenfurniture@users.noreply.github.com> Date: Tue, 7 May 2024 12:30:47 +1000 Subject: [PATCH] fix: display thorchain and cosmos account label as the address (as with EVMs) --- src/state/slices/portfolioSlice/utils.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/state/slices/portfolioSlice/utils.ts b/src/state/slices/portfolioSlice/utils.ts index efb245cbddf..a12341400f3 100644 --- a/src/state/slices/portfolioSlice/utils.ts +++ b/src/state/slices/portfolioSlice/utils.ts @@ -66,7 +66,8 @@ export const accountIdToLabel = (accountId: AccountId): string => { case bscChainId: case arbitrumChainId: case arbitrumNovaChainId: - // this will be the 0x account + case thorchainChainId: + case cosmosChainId: return firstFourLastFour(pubkey) case btcChainId: // TODO(0xdef1cafe): translations @@ -76,10 +77,6 @@ export const accountIdToLabel = (accountId: AccountId): string => { return '' case bchChainId: return 'Bitcoin Cash' - case cosmosChainId: - return 'Cosmos' - case thorchainChainId: - return 'Thorchain' case dogeChainId: return 'Dogecoin' case ltcChainId: