fix submit button not working

This commit is contained in:
vchikalkin 2025-05-06 10:57:46 +03:00
parent 7e886172f2
commit b5306357c8

View File

@ -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,
}));
}