Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: display thorchain and cosmos account label as the shortened address #6839

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/state/slices/portfolioSlice/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Loading