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
This commit is contained in:
Matt Van Horn 2026-03-27 01:15:10 -07:00
parent c7ace83b61
commit 33b627cccc
No known key found for this signature in database

View file

@ -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);
}