From 049e79d7fb8313da6d2f2289b080e67de2279109 Mon Sep 17 00:00:00 2001
From: kamtschatka <sschatka@gmail.com>
Date: Sun, 9 Jun 2024 10:41:45 +0200
Subject: fix(web): Changed the toast to contain a more detailed error message
 in case the bookmark is already part of the list. Fixes #179 (#213)

Co-authored-by: kamtschatka <simon.schatka@gmx.at>
---
 apps/web/components/dashboard/bookmarks/EditorCard.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'apps/web/components/dashboard/bookmarks/EditorCard.tsx')

diff --git a/apps/web/components/dashboard/bookmarks/EditorCard.tsx b/apps/web/components/dashboard/bookmarks/EditorCard.tsx
index 44d68378..badf6002 100644
--- a/apps/web/components/dashboard/bookmarks/EditorCard.tsx
+++ b/apps/web/components/dashboard/bookmarks/EditorCard.tsx
@@ -69,8 +69,8 @@ export default function EditorCard({ className }: { className?: string }) {
       }
       form.reset();
     },
-    onError: () => {
-      toast({ description: "Something went wrong", variant: "destructive" });
+    onError: (e) => {
+      toast({ description: e.message, variant: "destructive" });
     },
   });
 
-- 
cgit v1.2.3-70-g09d2

