Skip to content

Commit

Permalink
rename state change in useCurrentTimeEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
Onatcer committed Jun 18, 2024
1 parent 0121195 commit 3a61d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/utils/useCurrentTimeEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const useCurrentTimeEntryStore = defineStore('currentTimeEntry', () => {
return false;
});

async function onToggleButtonPress(newState: boolean) {
async function setActiveState(newState: boolean) {
if (newState) {
startLiveTimer();
await startTimer();
Expand All @@ -214,6 +214,6 @@ export const useCurrentTimeEntryStore = defineStore('currentTimeEntry', () => {
startLiveTimer,
stopLiveTimer,
now,
onToggleButtonPress,
setActiveState,
};
});

0 comments on commit 3a61d68

Please sign in to comment.