Skip to content

Commit

Permalink
fix: #343
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Apr 6, 2022
1 parent bc4ed88 commit 674c46b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commands/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,15 +450,15 @@ module.exports = {
// todo: remove waitForTimeout below after improving switchToMetamaskNotification
await puppeteer.metamaskWindow().waitForTimeout(1000);
const notificationPage = await puppeteer.switchToMetamaskNotification();
if (isKovanTestnet) {
if (gasConfig && gasConfig.gasFee) {
await puppeteer.waitAndSetValue(
'1',
gasConfig.gasFee.toString(),
confirmPageElements.gasFeeInput,
notificationPage,
);
} else if (gasConfig && gasConfig.gasFee) {
} else if (isKovanTestnet) {
await puppeteer.waitAndSetValue(
gasConfig.gasFee.toString(),
'1',
confirmPageElements.gasFeeInput,
notificationPage,
);
Expand Down

0 comments on commit 674c46b

Please sign in to comment.