diff --git a/src/app/modules/time-clock/store/entry.effects.ts b/src/app/modules/time-clock/store/entry.effects.ts index 37a20a196..3853b45da 100644 --- a/src/app/modules/time-clock/store/entry.effects.ts +++ b/src/app/modules/time-clock/store/entry.effects.ts @@ -136,8 +136,12 @@ export class EntryEffects { return new actions.CreateEntry(entry); }), catchError((error) => { - this.toastrService.error('We could not clock in you, try again later.'); - return of(new actions.CreateEntryFail('Error')); + if (error.status === 404) { + return of(new actions.CreateEntry(entry)); + } else { + this.toastrService.error('We could not clock in you, try again later.'); + return of(new actions.CreateEntryFail('Error')); + } }) ) )