From f5f4f1b160c474afa228db85d90a16ef807167ae Mon Sep 17 00:00:00 2001 From: Keith Date: Mon, 23 Sep 2024 11:25:34 +0900 Subject: [PATCH] fix: fix missing optional chaining --- src/pages/Transaction/TransactionCell/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/Transaction/TransactionCell/index.tsx b/src/pages/Transaction/TransactionCell/index.tsx index 7fb02145d..2478087b2 100644 --- a/src/pages/Transaction/TransactionCell/index.tsx +++ b/src/pages/Transaction/TransactionCell/index.tsx @@ -305,7 +305,9 @@ const TransactionCellCapacityAmount = ({ cell }: { cell: Cell }) => { return {`${parseUDTAmount(amount, udtInfo.decimal)} ${udtInfo.symbol}`} } - return {`${t('udt.unknown_token')} #${udtInfo.typeHash.substring(udtInfo.typeHash.length - 4) ?? '?'}`} + return ( + {`${t('udt.unknown_token')} #${udtInfo.typeHash?.substring(udtInfo.typeHash.length - 4) ?? '?'}`} + ) } return