aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/(dash)
diff options
context:
space:
mode:
authorDhravya Shah <[email protected]>2024-08-06 11:26:34 -0700
committerDhravya Shah <[email protected]>2024-08-06 11:26:34 -0700
commitbc6fdf35172cdcd8ea88d3f28d498a5c5f209df3 (patch)
tree196e9dc420e4509303d6c9a420fd57365652d8ad /apps/web/app/(dash)
parentMerge pull request #193 from supermemoryai/kush/be-queue (diff)
downloadsupermemory-bc6fdf35172cdcd8ea88d3f28d498a5c5f209df3.tar.xz
supermemory-bc6fdf35172cdcd8ea88d3f28d498a5c5f209df3.zip
make use of the promise-based thingy we're doing
Diffstat (limited to 'apps/web/app/(dash)')
-rw-r--r--apps/web/app/(dash)/dialogContentContainer.tsx8
-rw-r--r--apps/web/app/(dash)/menu.tsx2
2 files changed, 1 insertions, 9 deletions
diff --git a/apps/web/app/(dash)/dialogContentContainer.tsx b/apps/web/app/(dash)/dialogContentContainer.tsx
index 1a11ac6d..f856427f 100644
--- a/apps/web/app/(dash)/dialogContentContainer.tsx
+++ b/apps/web/app/(dash)/dialogContentContainer.tsx
@@ -74,14 +74,6 @@ export function DialogContentContainer({
setContent("");
setSelectedSpaces([]);
-
- if (cont.success) {
- toast.success("Memory queued", {
- richColors: true,
- });
- } else {
- toast.error(`Memory creation failed: ${cont.error}`);
- }
};
useEffect(() => {
diff --git a/apps/web/app/(dash)/menu.tsx b/apps/web/app/(dash)/menu.tsx
index 1c0ce1ee..f9363efb 100644
--- a/apps/web/app/(dash)/menu.tsx
+++ b/apps/web/app/(dash)/menu.tsx
@@ -190,7 +190,7 @@ function Menu() {
Creating memory...
</span>
),
- success: (data) => "Memory created",
+ success: (data) => "Memory queued",
error: (error) => error.message,
richColors: true,
});