From 2d41e403ce758eca4faa6ce4ee4ac8848e6366a2 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 18 Jul 2024 18:44:09 +0300 Subject: [PATCH] apps/web: fix reset error on next step --- apps/web/context/form-state.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/context/form-state.tsx b/apps/web/context/form-state.tsx index dbba47c..db884ee 100644 --- a/apps/web/context/form-state.tsx +++ b/apps/web/context/form-state.tsx @@ -20,6 +20,7 @@ const reducer = (state: State, action: Action): State => { if (action.payload.step) return { ...state, + error: undefined, step: action.payload.step, user: action.payload.user || state.user, };