Only on change
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -165,9 +165,7 @@ export class AppCommonEffects {
|
||||
@Effect({ dispatch: false })
|
||||
online$: Observable<Action> = this.actions$.pipe(
|
||||
ofType(appCommonActions.ONLINE),
|
||||
withLatestFrom(this.store$.select(appCommonReducers.SelectGetIsOnline)),
|
||||
switchMap(([action,isOnline]) => {
|
||||
if(!isOnline) {
|
||||
switchMap((action) => {
|
||||
console.debug("Online: Check token");
|
||||
if(!this.oauthService$.hasValidAccessToken()) {
|
||||
console.debug("No valid token, try to refresh");
|
||||
@@ -177,7 +175,6 @@ export class AppCommonEffects {
|
||||
this.store$.dispatch(new appCommonActions.InitUser());
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
return of(undefined);
|
||||
}));
|
||||
|
Reference in New Issue
Block a user