From 63b4d60a722367f5bad8acf81c46e394be2dd8e3 Mon Sep 17 00:00:00 2001 From: draculola1 Date: Mon, 24 Jul 2023 23:29:21 +0300 Subject: [PATCH] fix(GoalCreateForm): disable the local state busy after request response --- src/components/GoalCreateForm/GoalCreateForm.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/GoalCreateForm/GoalCreateForm.tsx b/src/components/GoalCreateForm/GoalCreateForm.tsx index 6fd412274..631f8300b 100644 --- a/src/components/GoalCreateForm/GoalCreateForm.tsx +++ b/src/components/GoalCreateForm/GoalCreateForm.tsx @@ -107,6 +107,8 @@ const GoalCreateForm: React.FC = ({ title, onGoalCreate }) onGoalCreate?.(res); } + + setBusy(false); }; return (