From bb1b3da42d9c2fe0231412f46883cae3ff2d40c7 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Thu, 27 Jun 2024 15:41:30 +0200 Subject: [PATCH] Remove loading from create only on error --- components/forms/CreateTxForm/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/forms/CreateTxForm/index.tsx b/components/forms/CreateTxForm/index.tsx index c6c9178..bbff94d 100644 --- a/components/forms/CreateTxForm/index.tsx +++ b/components/forms/CreateTxForm/index.tsx @@ -100,8 +100,8 @@ const CreateTxForm = ({ router, senderAddress, accountOnChain }: CreateTxFormPro description: "Failed to create transaction", fullError: e instanceof Error ? e : undefined, }); - } finally { setProcessing(false); + } finally { toast.dismiss(loadingToastId); } };