fix submit button not working
This commit is contained in:
parent
7e886172f2
commit
b5306357c8
@ -6,7 +6,7 @@ import { createStore } from 'zustand';
|
||||
export function createOrderStore(initState: OrderStore) {
|
||||
return createStore<OrderStore>((set, get) => ({
|
||||
...initState,
|
||||
_stepSequence: [],
|
||||
_stepSequence: initState._stepSequence,
|
||||
clientId: null,
|
||||
date: new Date(),
|
||||
|
||||
@ -31,7 +31,7 @@ export function createOrderStore(initState: OrderStore) {
|
||||
setServiceId: (id) => set({ serviceId: id }),
|
||||
setStep: (step) => set({ step }),
|
||||
setTime: (time) => set({ time }),
|
||||
step: 'master-select',
|
||||
step: initState.step,
|
||||
time: null,
|
||||
}));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user