Skip to content

Commit 81c459c

Browse files
committed
fix: #437 switch
1 parent 0c6a3c8 commit 81c459c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/modules/time-clock/store/entry.effects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class EntryEffects {
1919
switchMap((action: actions.SwitchTimeEntry) =>
2020
this.entryService.stopEntryRunning(action.idEntrySwitching).pipe(
2121
map((response) => {
22-
const stopDateForEntry = new Date(response.end_time);
22+
const stopDateForEntry = new Date(response.end_date);
2323
stopDateForEntry.setSeconds(stopDateForEntry.getSeconds() + 1 );
2424
return new actions.CreateEntry({ project_id: action.idProjectSwitching, start_date: stopDateForEntry.toISOString() });
2525
}),

0 commit comments

Comments
 (0)