From e8b249ffef208a012bcdcdd31aab30382831cc3a Mon Sep 17 00:00:00 2001 From: Dhravya Date: Mon, 24 Jun 2024 23:38:47 -0500 Subject: [PATCH] we close the modal once memory creation is started --- apps/web/app/(dash)/dynamicisland.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/web/app/(dash)/dynamicisland.tsx b/apps/web/app/(dash)/dynamicisland.tsx index a26b127f..9061b8ad 100644 --- a/apps/web/app/(dash)/dynamicisland.tsx +++ b/apps/web/app/(dash)/dynamicisland.tsx @@ -266,14 +266,13 @@ function PageForm({ content: content, spaces: space ? [space] : undefined, }); + cancelfn(); if (cont.success) { toast.success("Memory created"); } else { toast.error("Memory creation failed"); } - - cancelfn(); }} className="bg-secondary border border-muted-foreground px-4 py-3 rounded-2xl mt-2 flex flex-col gap-3" >