Skip to content

Commit

Permalink
Code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed May 21, 2024
1 parent 4ef65c0 commit b6cdb4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/hooks/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ export default function useReset() {
const appStateStore = useAppStateStore();
const {openConfirmDialog} = appStateStore;

return () => {
return () =>
openConfirmDialog(t('general.confirmReset'), () => {
scheduleStore.$reset();
appStateStore.$reset();
router.push('/');
});
};
}
2 changes: 1 addition & 1 deletion src/stores/appState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const useAppStateStore = defineStore('appState', () => {

const confirmAction = ref(() => {});

const trainingData = ref(getEmptyTraining());
const trainingData = ref({} as Training);

const openWeek = ref<number | null>(0);

Expand Down

0 comments on commit b6cdb4a

Please sign in to comment.