fix: properly set safeAddress key for incomingTransactions

This commit is contained in:
fernandomg 2020-05-07 19:19:40 -03:00
parent a533f576c3
commit 82b786cc54
1 changed files with 2 additions and 3 deletions

View File

@ -1,8 +1,7 @@
// @flow
import axios from 'axios'
import bn from 'bignumber.js'
import { List, Map, type RecordInstance } from 'immutable'
import { List, Map } from 'immutable'
import generateBatchRequests from '~/logic/contracts/generateBatchRequests'
import { buildIncomingTxServiceUrl } from '~/logic/safe/transactions/incomingTxHistory'
@ -102,5 +101,5 @@ export const loadIncomingTransactions = async (safeAddress: string) => {
const incomingTxsWithData = await batchIncomingTxsTokenDataRequest(incomingTransactions)
const incomingTxsRecord = incomingTxsWithData.map(buildIncomingTransactionFrom)
return Map({ safeAddress: List(incomingTxsRecord) })
return Map({ [safeAddress]: List(incomingTxsRecord) })
}