From 6855b06e137f233ef431dafb4785c68c3a6c85fd Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Mon, 15 Aug 2022 15:28:56 -0230 Subject: [PATCH] Prevent type error in catch block in account-tracker.js _updateAccount (#15589) --- app/scripts/lib/account-tracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/lib/account-tracker.js b/app/scripts/lib/account-tracker.js index 70b2eec85..8dea01fc9 100644 --- a/app/scripts/lib/account-tracker.js +++ b/app/scripts/lib/account-tracker.js @@ -312,7 +312,7 @@ export default class AccountTracker { try { balance = await this._query.getBalance(address); } catch (error) { - if (error.data.request.method !== 'eth_getBalance') { + if (error.data?.request?.method !== 'eth_getBalance') { throw error; } }