From 20a0dadf2cacb8285cc140b944b8501e183d4b0f Mon Sep 17 00:00:00 2001 From: M-RB3 Date: Wed, 22 May 2024 23:29:29 +0400 Subject: [PATCH] fix pot setting --- src/pages/Pot/NavPages/ConfigForm/ConfigForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Pot/NavPages/ConfigForm/ConfigForm.tsx b/src/pages/Pot/NavPages/ConfigForm/ConfigForm.tsx index 1d69262d..f08cd4ee 100644 --- a/src/pages/Pot/NavPages/ConfigForm/ConfigForm.tsx +++ b/src/pages/Pot/NavPages/ConfigForm/ConfigForm.tsx @@ -132,7 +132,7 @@ const ConfigForm = ({ potDetail, style }: { potDetail?: PotDetail; style?: any } const [state, setState] = useState(inital_state); const updateState = (updatedState: any) => setState({ - ...inital_state, + ...state, ...updatedState, });