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) => {
|
const allAwaitingTransactions = allTransactions.map((safeTransactions) => {
|
||||||
|
if (!safeTransactions) {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
|
||||||
const nonCancelledTransactions = safeTransactions.filter((transaction) => {
|
const nonCancelledTransactions = safeTransactions.filter((transaction) => {
|
||||||
// If transactions are not executed, but there's a transaction with the same nonce EXECUTED later
|
// 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
|
// it means that the transaction was cancelled (Replaced) and shouldn't get executed
|
||||||
|
|
Loading…
Reference in New Issue