We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46cffd9 commit ee18ca0Copy full SHA for ee18ca0
src/pages/Transaction/TransactionCell/index.tsx
@@ -305,7 +305,7 @@ const TransactionCellCapacityAmount = ({ cell }: { cell: Cell }) => {
305
return <span>{`${parseUDTAmount(amount, udtInfo.decimal)} ${udtInfo.symbol}`}</span>
306
}
307
308
- return <span>{`${t('udt.unknown_token')} #${udtInfo.typeHash?.substring(udtInfo.typeHash.length - 4)}`}</span>
+ return <span>{`${t('udt.unknown_token')} #${udtInfo.typeHash.substring(udtInfo.typeHash.length - 4) ?? '?'}`}</span>
309
310
311
return <Capacity capacity={shannonToCkb(cell.capacity)} layout="responsive" />
0 commit comments