We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a25ade1 commit 33992f3Copy full SHA for 33992f3
app/chatrooms/[chatroomId]/components/invite-chatroom-dialog.tsx
@@ -124,8 +124,9 @@ export function InviteChatroomButton({
124
setSelectedUsers([]);
125
toast.success("Successfully invited user(s) to chatroom");
126
} catch (error) {
127
- console.error("Error inviting users:", error);
128
- toast.error("Error inviting user(s)");
+ if (error instanceof Error) {
+ toast.error(error.message);
129
+ }
130
}
131
};
132
0 commit comments