Skip to content

Commit edb08a1

Browse files
Jon-edgeswansontec
authored andcommitted
Correct the displayName in getTxActionDisplayInfo
1 parent 50fd730 commit edb08a1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased (develop)
44

5+
- fixed: Correct the display name for ETH txs on non-Ethereum chains
6+
57
## 4.22.0 (staging)
68

79
- added: `NotificationCenterScene`

src/actions/CategoriesActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export const getTxActionDisplayInfo = (tx: EdgeTransaction, account: EdgeAccount
283283
const { assetAction, chainAction, chainAssetAction, metadata, savedAction, swapData, tokenId } = tx
284284
const { currencyConfig, currencyInfo } = wallet
285285

286-
const { displayName } = tokenId == null ? currencyInfo : currencyConfig.allTokens[tokenId] ?? { displayName: '' }
286+
const displayName = tokenId == null ? currencyInfo.assetDisplayName : currencyConfig.allTokens[tokenId]?.displayName ?? ''
287287

288288
const action = savedAction ?? chainAction
289289
const assetAct = assetAction ?? chainAssetAction

0 commit comments

Comments
 (0)