Skip to content

Commit 1a6ecd5

Browse files
committed
fix(settings.page): sync profile after email verified
1 parent 62280a1 commit 1a6ecd5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/app/features/settings/settings.page.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Clipboard } from '@capacitor/clipboard';
55
import { IonModal } from '@ionic/angular';
66
import { TranslocoService } from '@ngneat/transloco';
77
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
8-
import { EMPTY, Subject, defer } from 'rxjs';
8+
import { EMPTY, Subject, defer, forkJoin } from 'rxjs';
99
import {
1010
catchError,
1111
concatMapTo,
@@ -98,6 +98,12 @@ export class SettingsPage {
9898
private readonly customCameraService: CustomCameraService
9999
) {}
100100

101+
ionViewWillEnter() {
102+
forkJoin([this.diaBackendAuthService.syncProfile$()])
103+
.pipe(untilDestroyed(this))
104+
.subscribe();
105+
}
106+
101107
ionViewDidEnter() {
102108
this.hiddenOptionClicks$
103109
.pipe(

0 commit comments

Comments
 (0)