change debounce time

This commit is contained in:
Egor Aristov 2025-02-28 17:21:06 +03:00
parent f12f480cb0
commit 52a56e7d7d
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F

View File

@ -20,7 +20,7 @@ export const useWizardStore = defineStore('wizard', () => {
const updateLocalStorage = debounce(() => { const updateLocalStorage = debounce(() => {
localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(specs)); localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(specs));
}, 250); }, 100);
function updateSpec(fieldName: FieldNames, newValue: string) { function updateSpec(fieldName: FieldNames, newValue: string) {
specs[fieldName] = newValue; specs[fieldName] = newValue;