Skip to content

Commit ee18ca0

Browse files
committed
fix: use '?' instead of 'undefined'
1 parent 46cffd9 commit ee18ca0

File tree

1 file changed

+1
-1
lines changed
  • src/pages/Transaction/TransactionCell

1 file changed

+1
-1
lines changed

src/pages/Transaction/TransactionCell/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ const TransactionCellCapacityAmount = ({ cell }: { cell: Cell }) => {
305305
return <span>{`${parseUDTAmount(amount, udtInfo.decimal)} ${udtInfo.symbol}`}</span>
306306
}
307307

308-
return <span>{`${t('udt.unknown_token')} #${udtInfo.typeHash?.substring(udtInfo.typeHash.length - 4)}`}</span>
308+
return <span>{`${t('udt.unknown_token')} #${udtInfo.typeHash.substring(udtInfo.typeHash.length - 4) ?? '?'}`}</span>
309309
}
310310

311311
return <Capacity capacity={shannonToCkb(cell.capacity)} layout="responsive" />

0 commit comments

Comments
 (0)