diff options
| author | Dhravya <[email protected]> | 2024-06-24 23:38:47 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-06-24 23:38:47 -0500 |
| commit | e8b249ffef208a012bcdcdd31aab30382831cc3a (patch) | |
| tree | d0f921f414dba534625a22b32db868b75f989f78 | |
| parent | close modal after adding memory (diff) | |
| download | supermemory-e8b249ffef208a012bcdcdd31aab30382831cc3a.tar.xz supermemory-e8b249ffef208a012bcdcdd31aab30382831cc3a.zip | |
we close the modal once memory creation is started
| -rw-r--r-- | apps/web/app/(dash)/dynamicisland.tsx | 3 |
1 files changed, 1 insertions, 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" > |