From 4a89b4a589a204556c2a7e7e2292982f23db8858 Mon Sep 17 00:00:00 2001 From: abhijithvijayan <34790378+abhijithvijayan@users.noreply.github.com> Date: Tue, 14 Jul 2020 03:02:39 +0530 Subject: [PATCH] refactor: show only spinner on submitting --- source/Popup/Form.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Popup/Form.tsx b/source/Popup/Form.tsx index f80fa5e..4efa9a8 100644 --- a/source/Popup/Form.tsx +++ b/source/Popup/Form.tsx @@ -336,9 +336,9 @@ const Form: React.FC = () => { handleFormSubmit(formState.values); }} > - Create - - {isSubmitting && ( + {!isSubmitting ? ( + Create + ) : ( )}