diff --git a/src/client/hooks/useStoreValue.js b/src/client/hooks/useStoreValue.js index 7a53c78..e376b94 100644 --- a/src/client/hooks/useStoreValue.js +++ b/src/client/hooks/useStoreValue.js @@ -13,7 +13,9 @@ export const useStoreValue = ({ computedValue, valueName }) => { // get value from store useEffect(() => { if (!computedValue) { - setCurrentValue(sourceValue); + if (sourceValue !== undefined) { + setCurrentValue(sourceValue); + } } }, [computedValue, sourceValue]);