Skip to content

Commit b659536

Browse files
Jon-edgepeachbits
authored andcommitted
Correct the displayName in getTxActionDisplayInfo
1 parent d8f9ec9 commit b659536

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- added: Add Abstract ETH Layer 2 support
66
- changed: Force max unstake on Kiln ETH positions
7+
- fixed: Correct the display name for ETH txs on non-Ethereum chains
78

89
## 4.22.0 (staging)
910

src/__tests__/components/TransactionListRow.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ describe('TransactionListRow', () => {
1212
pluginId: 'bitcoin',
1313
currencyCode: 'BTC',
1414
displayName: 'Bitcoin',
15+
assetDisplayName: 'Bitcoin',
1516
requiredConfirmations: 1,
1617
denominations: [
1718
{ name: 'BTC', multiplier: '100000000', symbol: '₿' },

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)