mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-15 18:25:18 +02:00
Merge pull request #1001 from mvanhorn/osc/920-invite-error-toast
fix: add error toast to invite creation failure
This commit is contained in:
commit
ddd9686aa6
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