diff --git a/apps/web/app/(dash)/dynamicisland.tsx b/apps/web/app/(dash)/dynamicisland.tsx index 43db52f3..1f09fcda 100644 --- a/apps/web/app/(dash)/dynamicisland.tsx +++ b/apps/web/app/(dash)/dynamicisland.tsx @@ -255,17 +255,18 @@ function PageForm({ action={async (e: FormData) => { const content = e.get("content")?.toString(); const space = e.get("space")?.toString(); + + toast.info("Creating memory..."); + if (!content) { toast.error("Content is required"); return; } - setLoading(true); const cont = await createMemory({ content: content, spaces: space ? [space] : undefined, }); - setLoading(false); if (cont.success) { toast.success("Memory created"); } else { @@ -291,9 +292,6 @@ function PageForm({ -
- {loading ?
Loading...
: "not loading"} -