mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-17 12:07:09 +00:00
Fix app crashing when safeTransactions is undefined
This commit is contained in:
parent
de4d564955
commit
afa1f92d3d
@ -6,6 +6,10 @@ export const getAwaitingTransactions = (allTransactions, cancellationTransaction
|
||||
}
|
||||
|
||||
const allAwaitingTransactions = allTransactions.map((safeTransactions) => {
|
||||
if (!safeTransactions) {
|
||||
return []
|
||||
}
|
||||
|
||||
const nonCancelledTransactions = safeTransactions.filter((transaction) => {
|
||||
// If transactions are not executed, but there's a transaction with the same nonce EXECUTED later
|
||||
// it means that the transaction was cancelled (Replaced) and shouldn't get executed
|
||||
|
Loading…
x
Reference in New Issue
Block a user