diff --git a/resources/js/utils/useCurrentTimeEntry.ts b/resources/js/utils/useCurrentTimeEntry.ts index 70713c99..7b18fbc3 100644 --- a/resources/js/utils/useCurrentTimeEntry.ts +++ b/resources/js/utils/useCurrentTimeEntry.ts @@ -66,6 +66,12 @@ export const useCurrentTimeEntryStore = defineStore('currentTimeEntry', () => { if (timeEntriesResponse?.data) { if (timeEntriesResponse.data) { currentTimeEntry.value = timeEntriesResponse.data; + if ( + currentTimeEntry.value.start !== '' && + currentTimeEntry.value.end === null + ) { + startLiveTimer(); + } } else { currentTimeEntry.value = { ...emptyTimeEntry }; }