mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-17 18:35:19 +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) {
|
} catch (error) {
|
||||||
console.error("Failed to create invite:", error);
|
console.error("Failed to create invite:", error);
|
||||||
|
toast.error("Failed to create invite. Please try again.");
|
||||||
} finally {
|
} finally {
|
||||||
setCreating(false);
|
setCreating(false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue