Skip to content

Commit

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

0 comments on commit d6ab1ea

Please sign in to comment.