aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web
diff options
context:
space:
mode:
authorkamtschatka <sschatka@gmail.com>2024-06-09 10:41:45 +0200
committerGitHub <noreply@github.com>2024-06-09 09:41:45 +0100
commit049e79d7fb8313da6d2f2289b080e67de2279109 (patch)
treec90016ae7f7bf0a2b17388af8a17925f63957926 /apps/web
parentbe8b91f97cc004119bab27b7f145cc77e3d257bb (diff)
downloadkarakeep-049e79d7fb8313da6d2f2289b080e67de2279109.tar.zst
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>
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/components/dashboard/bookmarks/EditorCard.tsx4
1 files changed, 2 insertions, 2 deletions
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" });
},
});