Skip to content

Commit

Permalink
fix symbol ibc
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangndm3139 committed Apr 2, 2024
1 parent 5ec3c48 commit cd3d2cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/Transactions/TxActionModal/Send/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cd3d2cc

Please sign in to comment.