Merge pull request #966 from gnosis/fix-awaitingTransactions

Fix app crashing when safeTransactions is undefined
This commit is contained in:
Mikhail Mikheev 2020-05-29 14:50:17 +04:00 committed by GitHub
commit 710f6a5ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ export const loadSafeTransactions = async (safeAddress, getState) => {
const groupedTxs = List(txsRecord).groupBy((tx) => (tx.get('cancellationTx') ? 'cancel' : 'outgoing'))
return {
outgoing: groupedTxs.get('outgoing'),
outgoing: groupedTxs.get('outgoing') || List([]),
cancel: Map().set(safeAddress, groupedTxs.get('cancel')),
}
}