Skip to content

Commit

Permalink
fix(features/home): resolve lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
olgahaha committed Jul 25, 2024
1 parent 96ad3b5 commit 4d1e43c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/app/features/home/capture-tab/capture-tab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ export class CaptureTabComponent implements OnInit {
.subscribe(value => (this.pendingUploadTasks = value));
}

static async openFaq() {
await Browser.open({ url: getFaqUrl(), toolbarColor: browserToolbarColor });
}

ngOnInit(): void {
this.initSegmentListener();
}
Expand Down Expand Up @@ -216,7 +220,7 @@ export class CaptureTabComponent implements OnInit {
},
{
text: this.translocoService.translate('faq'),
handler: async () => await this.openFaq(),
handler: async () => await CaptureTabComponent.openFaq(),
},
{
text: this.translocoService.translate('logout'),
Expand Down Expand Up @@ -251,10 +255,6 @@ export class CaptureTabComponent implements OnInit {
.subscribe();
}

async openFaq() {
await Browser.open({ url: getFaqUrl(), toolbarColor: browserToolbarColor });
}

async editUsername() {
const alert = await this.alertController.create({
header: this.translocoService.translate('editUsername'),
Expand Down
3 changes: 1 addition & 2 deletions src/app/features/home/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ export class HomePage {

readonly username$ = this.diaBackendAuthService.username$;

private readonly userGuideIsTemporarelyDisabled = true;

readonly hasNewInbox$ = this.diaBackendTransactionRepository.inbox$.pipe(
catchError((err: unknown) => this.errorService.toastError$(err)),
map(transactions => transactions.count !== 0),
Expand Down Expand Up @@ -471,6 +469,7 @@ export class HomePage {
.subscribe();
}

// eslint-disable-next-line class-methods-use-this
async openFaq() {
await Browser.open({ url: getFaqUrl(), toolbarColor: browserToolbarColor });
}
Expand Down

0 comments on commit 4d1e43c

Please sign in to comment.