mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-11 10:34:06 +00:00
Fix wrong status on txs
This commit is contained in:
parent
89a80bdb7a
commit
71375f9d64
@ -173,12 +173,12 @@ export const calculateTransactionStatus = (
|
||||
|
||||
if (tx.isExecuted && tx.isSuccessful) {
|
||||
txStatus = TransactionStatus.SUCCESS
|
||||
} else if (tx.creationTx) {
|
||||
txStatus = TransactionStatus.SUCCESS
|
||||
} else if (tx.cancelled || nonce > tx.nonce) {
|
||||
txStatus = TransactionStatus.CANCELLED
|
||||
} else if (tx.confirmations.size === threshold) {
|
||||
txStatus = TransactionStatus.AWAITING_EXECUTION
|
||||
} else if (tx.creationTx) {
|
||||
txStatus = TransactionStatus.SUCCESS
|
||||
} else if (!!tx.isPending) {
|
||||
txStatus = TransactionStatus.PENDING
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user