Skip to content

Commit

Permalink
fix memo tx detail
Browse files Browse the repository at this point in the history
  • Loading branch information
HoangNDM committed Nov 23, 2023
1 parent a100bdd commit 463cea7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pages/Transactions/components/TxDetail/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export default function TxMsg({ tx, txDetail, token, onImport }) {
to:
</strong>
<AddressInfo address={JSON.parse(txDetail?.txMessage[0].contractArgs)?.recipient} />
{txDetail?.txMemo && <TransactionMemo memo={txDetail?.txMemo} />}
</div>
)
}
Expand Down Expand Up @@ -132,6 +133,7 @@ export default function TxMsg({ tx, txDetail, token, onImport }) {
)
}
})}
{txDetail?.txMemo && <TransactionMemo memo={txDetail?.txMemo} />}
</div>
)
}
Expand All @@ -146,6 +148,7 @@ export default function TxMsg({ tx, txDetail, token, onImport }) {
to:
</strong>
<AddressInfo address={txDetail?.txMessage[0]?.validatorAddress} />
{txDetail?.txMemo && <TransactionMemo memo={txDetail?.txMemo} />}
</div>
)
}
Expand All @@ -165,6 +168,7 @@ export default function TxMsg({ tx, txDetail, token, onImport }) {
Auto Claim Reward: <span className="token">{formatNativeToken(txDetail.autoClaimAmount)}</span>
</strong>
) : null}
{txDetail?.txMemo && <TransactionMemo memo={txDetail?.txMemo} />}
</div>
)
}
Expand Down Expand Up @@ -229,6 +233,7 @@ export default function TxMsg({ tx, txDetail, token, onImport }) {
Auto Claim Reward: <span className="token">{txDetail.autoClaimAmount}</span>
</strong>
) : null}
{txDetail?.txMemo && <TransactionMemo memo={txDetail?.txMemo} />}
</div>
)
}
Expand All @@ -249,6 +254,7 @@ export default function TxMsg({ tx, txDetail, token, onImport }) {
<StyledStatus>
<StatusCard status={txDetail?.extraDetails?.proposalDetail?.status} />
</StyledStatus>
{txDetail?.txMemo && <TransactionMemo memo={txDetail?.txMemo} />}
</div>
)
}
Expand All @@ -273,6 +279,7 @@ export default function TxMsg({ tx, txDetail, token, onImport }) {
</Fragment>
)
})}
{txDetail?.txMemo && <TransactionMemo memo={txDetail?.txMemo} />}
</div>
)
}
Expand Down

0 comments on commit 463cea7

Please sign in to comment.