diff --git a/src/app/shared/notifications/notifications.effects.ts b/src/app/shared/notifications/notifications.effects.ts index fe6637b561e49a468c85024abe493a75eddd69a3..b8b9fca4d2c014278df7833cc60d6a1479a31e99 100644 --- a/src/app/shared/notifications/notifications.effects.ts +++ b/src/app/shared/notifications/notifications.effects.ts @@ -24,10 +24,11 @@ export class NotificationsEffects { * Authenticate user. * @method authenticate */ - /*@Effect() + @Effect() public timer: Observable<Action> = this.actions$ .ofType(NotificationsActionTypes.NEW_NOTIFICATION_WITH_TIMER) - .debounceTime((action) => action.payload.options.timeOut as number) + // .debounceTime((action: any) => action.payload.options.timeOut) + .debounceTime(3000) .map(() => new RemoveNotificationAction()); .switchMap((action: NewNotificationWithTimerAction) => Observable .timer(30000)