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

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

This commit is contained in:
Dan J Miller 2022-08-15 15:28:56 -02:30 committed by GitHub
parent 74d48df235
commit 6855b06e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }
} }