1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Handle empty fetch response (#7111)

This commit is contained in:
Dan J Miller 2019-10-09 12:11:18 -02:30 committed by Mark Stacey
parent ee913edf9f
commit f1c774d8f3

View File

@ -207,7 +207,7 @@ class IncomingTransactionsController {
}
}
_processTxFetchResponse ({ status, result, address, currentNetworkID }) {
_processTxFetchResponse ({ status, result = [], address, currentNetworkID }) {
if (status !== '0' && result.length > 0) {
const remoteTxList = {}
const remoteTxs = []