Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
Signed-off-by: drptbl <[email protected]>
  • Loading branch information
drptbl committed Jun 20, 2024
1 parent dcc649d commit ef3545d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wallets/metamask/src/pages/NotificationPage/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ export class NotificationPage {
private async beforeMessageSignature(extensionId: string) {
const notificationPage = await getNotificationPageAndWaitForLoad(this.page.context(), extensionId)

const scrollButton = notificationPage.locator(Selectors.SignaturePage.structuredMessage.scrollDownButton);
const isScrollButtonPresent = await scrollButton.count() > 0;
const scrollButton = notificationPage.locator(Selectors.SignaturePage.structuredMessage.scrollDownButton)
const isScrollButtonPresent = (await scrollButton.count()) > 0

let isScrollButtonVisible = false;
let isScrollButtonVisible = false
if (isScrollButtonPresent) {
await scrollButton.waitFor({ state: 'visible' });
isScrollButtonVisible = true;
await scrollButton.waitFor({ state: 'visible' })
isScrollButtonVisible = true
}

return {
Expand Down

0 comments on commit ef3545d

Please sign in to comment.