Prevent type error in catch block in account-tracker.js _updateAccount (#15589)

feature/default_network_editable
Dan J Miller 2 years ago committed by GitHub
parent 74d48df235
commit 6855b06e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/scripts/lib/account-tracker.js

@ -312,7 +312,7 @@ export default class AccountTracker {
try { try {
balance = await this._query.getBalance(address); balance = await this._query.getBalance(address);
} catch (error) { } catch (error) {
if (error.data.request.method !== 'eth_getBalance') { if (error.data?.request?.method !== 'eth_getBalance') {
throw error; throw error;
} }
} }

Loading…
Cancel
Save