Skip to content

Commit

Permalink
fix msg tx detail
Browse files Browse the repository at this point in the history
  • Loading branch information
HoangNDM committed Nov 23, 2023
1 parent 463cea7 commit d1ca245
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/Transactions/components/TxDetail/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ export default function TxMsg({ tx, txDetail, token, onImport }) {
</div>
)
}

if (type == MsgTypeUrl.ExecuteContract) {
if (tx.txInfo.displayType === 'Receive') {
return <></>
return <div className="tx-msg">{txDetail?.txMemo && <TransactionMemo memo={txDetail?.txMemo} />}</div>
}
if (txDetail?.txMessage[0].contractFunction === 'transfer') {
return (
Expand Down Expand Up @@ -174,7 +175,7 @@ export default function TxMsg({ tx, txDetail, token, onImport }) {
}
if (type == MsgTypeUrl.Send) {
if (tx.txInfo.displayType === 'Receive') {
return <></>
return <div className="tx-msg">{txDetail?.txMemo && <TransactionMemo memo={txDetail?.txMemo} />}</div>
}
return (
<div className="tx-msg">
Expand Down

0 comments on commit d1ca245

Please sign in to comment.