Skip to content

Commit

Permalink
fix: when redirected to reports page, it is coming up twice (#3120)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyashpatil78 authored Jun 28, 2024
1 parent fa61bc5 commit 51a50bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/fyle/my-expenses/my-expenses.page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3283,6 +3283,7 @@ describe('MyExpensesPage', () => {
key: 'OPT_IN_POPUP_SHOWN_COUNT',
});
expect(component.showPromoteOptInModal).toHaveBeenCalledTimes(1);
expect(utilityService.toggleShowOptInAfterExpenseCreation).toHaveBeenCalledOnceWith(false);
}));

it('setModalDelay(): should set optInShowTimer and call showPromoteOptInModal after 2 seconds', fakeAsync(() => {
Expand Down
1 change: 1 addition & 0 deletions src/app/fyle/my-expenses/my-expenses.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ export class MyExpensesPage implements OnInit {

if (isAttemptLeft && isRedirectedFromAddExpense && canShowOptInModal) {
this.showPromoteOptInModal();
this.utilityService.toggleShowOptInAfterExpenseCreation(false);
}
});
}
Expand Down

0 comments on commit 51a50bb

Please sign in to comment.