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:
parent
74d48df235
commit
6855b06e13
@ -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…
Reference in New Issue
Block a user