Skip to content

Commit ca60a2c

Browse files
committed
fix: correct entry reset usage in state charts
1 parent 777471e commit ca60a2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/machines/pwned-info.machine.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const pwnedInfoMachine = createMachine<
2626
states: {
2727
idle: {},
2828
loading: {
29-
entry: 'reset',
29+
entry: reset,
3030
invoke: {
3131
id: 'pwnedPassword',
3232
src: (_, event) => pwnedPassword(event.payload),

src/machines/update-poller.machine.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const updatePollerMachine = createMachine<
3535
},
3636
},
3737
checkingForUpdate: {
38-
entry: 'reset',
38+
entry: reset,
3939
invoke: {
4040
id: 'checkForUpdate',
4141
src: (_, event) => event.checkForUpdate(),

0 commit comments

Comments
 (0)