From 38a5b7bec0f4db33470ca5948bf02309523ab2d9 Mon Sep 17 00:00:00 2001 From: Lakhan Baheti <94619783+1akhanBaheti@users.noreply.github.com> Date: Fri, 24 Nov 2023 12:47:02 +0530 Subject: [PATCH] chore: added error toast for invitation (#2853) --- web/components/onboarding/invite-members.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/components/onboarding/invite-members.tsx b/web/components/onboarding/invite-members.tsx index ad5b6a1c6..87c5d5b2b 100644 --- a/web/components/onboarding/invite-members.tsx +++ b/web/components/onboarding/invite-members.tsx @@ -244,7 +244,13 @@ export const InviteMembers: React.FC = (props) => { await nextStep(); }) - .catch((err) => console.log(err)); + .catch((err) => + setToastAlert({ + type: "error", + title: "Error!", + message: err?.error, + }) + ); }; const appendField = () => {