rcgit

/ karakeep

Commit 049e79d7

SHA 049e79d7fb8313da6d2f2289b080e67de2279109
Author kamtschatka <sschatka at gmail dot com>
Author Date 2024-06-09 10:41 +0200
Committer GitHub <noreply at github dot com>
Commit Date 2024-06-09 09:41 +0100
Parent(s) be8b91f97cc0 (diff)
Tree c90016ae7f7b

patch snapshot

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>
File + - Graph
M apps/web/components/dashboard/bookmarks/EditorCard.tsx +2 -2
1 file(s) changed, 2 insertions(+), 2 deletions(-)

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" });
     },
   });