diff --git a/projects/common/src/fm/effects/app-common.effects.ts b/projects/common/src/fm/effects/app-common.effects.ts index 8447a37..3e147df 100644 --- a/projects/common/src/fm/effects/app-common.effects.ts +++ b/projects/common/src/fm/effects/app-common.effects.ts @@ -49,7 +49,7 @@ export class AppCommonEffects { switchMap((action) => { return zip(this.userService$.getCurrentUser(),from(this.oauthService$.loadUserProfile())).pipe( switchMap(([user,userInfo]) => { - if (this.location.path === 'localhost' || user.language === undefined || user.language === this.locale) + if (location.hostname === 'localhost' || user.language === undefined || user.language === this.locale) { return of(new appCommonActions.InitUserSuccess(user,userInfo as UserInfo)) }