diff --git a/apps/web/app/(dash)/menu.tsx b/apps/web/app/(dash)/menu.tsx
index b8bd25cc..3dc47630 100644
--- a/apps/web/app/(dash)/menu.tsx
+++ b/apps/web/app/(dash)/menu.tsx
@@ -135,12 +135,25 @@ function Menu() {
richColors: true,
});
} else {
- toast.error(`Memory creation failed: ${cont.error}`);
throw new Error(`Memory creation failed: ${cont.error}`);
return cont;
}
};
+ const formSubmit = () => {
+ toast.promise(handleSubmit(content, selectedSpaces), {
+ loading: (
+
+ {" "}
+ Creating memory...
+
+ ),
+ success: (data) => "Memory queued",
+ error: (error) => `Memory creation failed: ${error}`,
+ richColors: true,
+ });
+ }
+
return (
<>
{/* Desktop Menu */}
@@ -191,20 +204,7 @@ function Menu() {