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 {
balance = await this._query.getBalance(address);
} catch (error) {
if (error.data.request.method !== 'eth_getBalance') {
if (error.data?.request?.method !== 'eth_getBalance') {
throw error;
}
}

Loading…
Cancel
Save