fix: DetailsRow memo function
fix: cancel transaction button condition
This commit is contained in:
parent
d3c5ef92f1
commit
a24fc45ffe
1 changed files with 6 additions and 2 deletions
|
|
@ -285,7 +285,7 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
|||
) : (
|
||||
errorElements
|
||||
)}
|
||||
{tx.txClass === 'cashOut' && getStatus(tx) !== 'Cancelled' && (
|
||||
{tx.txClass === 'cashOut' && getStatus(tx) === 'Pending' && (
|
||||
<ActionButton
|
||||
color="primary"
|
||||
Icon={CancelIcon}
|
||||
|
|
@ -338,4 +338,8 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
|||
)
|
||||
}
|
||||
|
||||
export default memo(DetailsRow)
|
||||
export default memo(
|
||||
DetailsRow,
|
||||
(prev, next) =>
|
||||
prev.it.id === next.it.id && prev.it.hasError === next.it.hasError
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue