Skip to content

Commit

Permalink
Merge pull request #390 from aura-nw/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
hoangndm3139 authored Jun 3, 2024
2 parents 947e12d + d6ab1ea commit 7c0458c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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,12 @@ 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 === data?.txDetails?.txMessage[0]?.denom ||
e?.symbol === data?.txDetails?.txMessage[0]?.denom ||
e?.cosmosDenom === data?.txDetails?.txMessage[0]?.denom,
)

const amount = isNativeToken
? formatNativeToken(data?.txDetails?.txMessage[0]?.amount)
Expand Down

0 comments on commit 7c0458c

Please sign in to comment.