Skip to content

Commit

Permalink
MOBILE-4201 login: Fix empty sites page when go back with openAddSite
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Sep 7, 2023
1 parent 7f99c77 commit 8716701
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/features/login/pages/sites/sites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,12 @@ export class CoreLoginSitesPage implements OnInit {
async ngOnInit(): Promise<void> {
if (CoreNavigator.getRouteBooleanParam('openAddSite')) {
this.add();

return;
}

this.accountsList = await CoreLoginHelper.getAccountsList();
this.loaded = true;

if (this.accountsList.count == 0) {
if (this.accountsList.count == 0 && !CoreNavigator.getRouteBooleanParam('openAddSite')) {
this.add();
}
}
Expand Down

0 comments on commit 8716701

Please sign in to comment.