We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb604b commit 4b24edaCopy full SHA for 4b24eda
src/app/modules/time-clock/store/entry.effects.ts
@@ -136,8 +136,12 @@ export class EntryEffects {
136
return new actions.CreateEntry(entry);
137
}),
138
catchError((error) => {
139
- this.toastrService.error('We could not clock in you, try again later.');
140
- return of(new actions.CreateEntryFail('Error'));
+ if (error.status === 404) {
+ return of(new actions.CreateEntry(entry));
141
+ } else {
142
+ this.toastrService.error('We could not clock in you, try again later.');
143
+ return of(new actions.CreateEntryFail('Error'));
144
+ }
145
})
146
)
147
0 commit comments