From bc6fdf35172cdcd8ea88d3f28d498a5c5f209df3 Mon Sep 17 00:00:00 2001 From: Dhravya Shah Date: Tue, 6 Aug 2024 11:26:34 -0700 Subject: make use of the promise-based thingy we're doing --- apps/web/app/(dash)/dialogContentContainer.tsx | 8 -------- apps/web/app/(dash)/menu.tsx | 2 +- 2 files changed, 1 insertion(+), 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... ), - success: (data) => "Memory created", + success: (data) => "Memory queued", error: (error) => error.message, richColors: true, }); -- cgit v1.2.3