From 2c9afe76cf3e3c49b87d056bf2a91a2a49b498e0 Mon Sep 17 00:00:00 2001 From: Timo Uttenweiler Date: Thu, 9 Apr 2026 11:40:37 +0200 Subject: [PATCH] Show error toast when leads API fails in Leadspeicher Co-Authored-By: Claude Sonnet 4.6 --- app/leadspeicher/page.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/leadspeicher/page.tsx b/app/leadspeicher/page.tsx index a48f503..1700bf9 100644 --- a/app/leadspeicher/page.tsx +++ b/app/leadspeicher/page.tsx @@ -443,6 +443,9 @@ export default function LeadVaultPage() { setLeads(data.leads); setTotal(data.total); setPages(data.pages); + } else { + const err = await res.json().catch(() => ({})) as { error?: string }; + toast.error(`Leads konnten nicht geladen werden: ${err.error || res.status}`); } } finally { setLoading(false);