fix: cancel transaction button condition

This commit is contained in:
Sérgio Salgado 2021-06-23 00:39:40 +01:00 committed by Josh Harvey
parent 875c5517d1
commit 2463ead863

View file

@ -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 })