fix: cancel transaction button condition
This commit is contained in:
parent
875c5517d1
commit
2463ead863
1 changed files with 2 additions and 1 deletions
|
|
@ -297,7 +297,7 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
|||
onClick={() => downloadRawLogs(tx, timezone)}>
|
||||
Download raw logs
|
||||
</ActionButton>
|
||||
{tx.txClass === 'cashOut' && (
|
||||
{tx.txClass === 'cashOut' && getStatus(tx) !== 'Cancelled' && (
|
||||
<ActionButton
|
||||
color="primary"
|
||||
Icon={CancelIcon}
|
||||
|
|
@ -327,6 +327,7 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
|||
id: tx.id
|
||||
}
|
||||
})
|
||||
setAction({ command: null })
|
||||
}}
|
||||
onDissmised={() => {
|
||||
setAction({ command: null })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue