mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-08 20:25:19 +02:00
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:
parent
c7ace83b61
commit
33b627cccc
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue