From 743d35b80266d56a5fc2e48544cc8f3c6afce2e7 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Sun, 18 Jan 2026 23:13:58 +0100 Subject: [PATCH] fix: show error toast on invalid public dashboard password --- app/share/[id]/page.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/share/[id]/page.tsx b/app/share/[id]/page.tsx index 00a5a08..7545776 100644 --- a/app/share/[id]/page.tsx +++ b/app/share/[id]/page.tsx @@ -76,6 +76,9 @@ export default function PublicDashboardPage() { } catch (error: any) { if ((error.status === 401 || error.response?.status === 401) && (error.data?.is_protected || error.response?.data?.is_protected)) { setIsPasswordProtected(true) + if (password) { + toast.error('Invalid password') + } } else if (error.status === 404 || error.response?.status === 404) { toast.error('Site not found') } else if (!silent) {