Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

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)

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