From 33b627cccc1ad59c44048290b41f5c9e0e859511 Mon Sep 17 00:00:00 2001 From: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Date: Fri, 27 Mar 2026 01:15:10 -0700 Subject: [PATCH] fix: add error toast to invite creation failure When invite creation failed, the error was only logged to console. Added toast.error() to give users visible feedback. Uses the existing sonner toast import already in the file (line 25). Fixes #920 --- .../app/dashboard/[search_space_id]/team/team-content.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/surfsense_web/app/dashboard/[search_space_id]/team/team-content.tsx b/surfsense_web/app/dashboard/[search_space_id]/team/team-content.tsx index 43b4d0b7a..09c29735e 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/team/team-content.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/team/team-content.tsx @@ -595,6 +595,7 @@ function CreateInviteDialog({ }); } catch (error) { console.error("Failed to create invite:", error); + toast.error("Failed to create invite. Please try again."); } finally { setCreating(false); }