Skip to content

Commit

Permalink
use optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-decker committed Jul 6, 2021
1 parent cc471dc commit 5d843cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/NetworkController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class NetworkController extends BaseController<
const { properties = {} } = this.state;

if (!properties.isEIP1559Compatible) {
if (!this.ethQuery || !this.ethQuery.sendAsync) {
if (typeof this.ethQuery?.sendAsync !== 'function') {
return Promise.resolve(true);
}
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 5d843cd

Please sign in to comment.