Skip to content

Commit

Permalink
chore: more testing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Aug 6, 2021
1 parent f3fe32e commit be665a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/stores/time/mutations.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
state as _state,
mutation,
} from './store';

Expand All @@ -7,4 +8,7 @@ import type {
} from './types';

export const updateTime = mutation('update-time', state => state.time = new Date());
export const setClockType = mutation('set-clock-type', (state, type: ClockType) => state.clockType = type);
export const setClockType = mutation('set-clock-type', (state, type: ClockType) => {
state.clockType = type;
console.log(type, state.clockType, _state.clockType);
});

0 comments on commit be665a1

Please sign in to comment.