Revert initial fix
Add default transaction value for safes without outgoing transactions
This commit is contained in:
parent
afa1f92d3d
commit
7a79579238
|
@ -6,10 +6,6 @@ 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
|
||||||
|
|
|
@ -262,7 +262,7 @@ export const loadSafeTransactions = async (safeAddress, getState) => {
|
||||||
const groupedTxs = List(txsRecord).groupBy((tx) => (tx.get('cancellationTx') ? 'cancel' : 'outgoing'))
|
const groupedTxs = List(txsRecord).groupBy((tx) => (tx.get('cancellationTx') ? 'cancel' : 'outgoing'))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
outgoing: groupedTxs.get('outgoing'),
|
outgoing: groupedTxs.get('outgoing') || List([]),
|
||||||
cancel: Map().set(safeAddress, groupedTxs.get('cancel')),
|
cancel: Map().set(safeAddress, groupedTxs.get('cancel')),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue