From cd3d2cc6b535c5c5a175b90556c33e38d0285b7f Mon Sep 17 00:00:00 2001 From: HoangNDM6 Date: Tue, 2 Apr 2024 17:06:04 +0700 Subject: [PATCH 1/2] fix symbol ibc --- src/pages/Transactions/TxActionModal/Send/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/Transactions/TxActionModal/Send/index.tsx b/src/pages/Transactions/TxActionModal/Send/index.tsx index ae1fbe2156..8616fcd31a 100644 --- a/src/pages/Transactions/TxActionModal/Send/index.tsx +++ b/src/pages/Transactions/TxActionModal/Send/index.tsx @@ -33,7 +33,9 @@ export default function Execute({ open, onClose, data, sendTx, rejectTx, disable const [txMemo, setTxMemo] = useState(data?.txDetails?.txMemo) const isNativeToken = data?.txDetails?.txMessage[0]?.denom === coinConfig?.find((e) => e?.type === 'native')?.denom - const otherToken = coinConfig?.find((e) => e?.denom ?? e?.cosmosDenom === data?.txDetails?.txMessage[0]?.denom) + const otherToken = coinConfig?.find( + (e) => (e?.denom ?? e?.cosmosDenom ?? e?.symbol) === data?.txDetails?.txMessage[0]?.denom, + ) const amount = isNativeToken ? formatNativeToken(data?.txDetails?.txMessage[0]?.amount) From d6ab1ea450d579a140917e015da26cbafe510a3d Mon Sep 17 00:00:00 2001 From: HoangNDM6 Date: Tue, 2 Apr 2024 17:12:56 +0700 Subject: [PATCH 2/2] fix send ibc --- src/pages/Transactions/TxActionModal/Send/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/Transactions/TxActionModal/Send/index.tsx b/src/pages/Transactions/TxActionModal/Send/index.tsx index 8616fcd31a..cf05fa6d10 100644 --- a/src/pages/Transactions/TxActionModal/Send/index.tsx +++ b/src/pages/Transactions/TxActionModal/Send/index.tsx @@ -34,7 +34,10 @@ export default function Execute({ open, onClose, data, sendTx, rejectTx, disable const isNativeToken = data?.txDetails?.txMessage[0]?.denom === coinConfig?.find((e) => e?.type === 'native')?.denom const otherToken = coinConfig?.find( - (e) => (e?.denom ?? e?.cosmosDenom ?? e?.symbol) === data?.txDetails?.txMessage[0]?.denom, + (e) => + e?.denom === data?.txDetails?.txMessage[0]?.denom || + e?.symbol === data?.txDetails?.txMessage[0]?.denom || + e?.cosmosDenom === data?.txDetails?.txMessage[0]?.denom, ) const amount = isNativeToken