Skip to content

Commit

Permalink
Display new meeting booking errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEgghead27 committed Sep 22, 2024
1 parent 8ab57e5 commit 606628c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/comps/pages/orgs/admin/AdminUpsertMeeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,14 @@ const AdminUpsertMeeting = ({
});
}
if (supabaseReturn.error) {
enqueueSnackbar(
"Error creating meeting. Contact it@stuysu.org for support.",
{ variant: "error" },
);
const error = await supabaseReturn.error?.context.text();
let message = "Contact it@stuysu.org for support.";
if (error) {
message = error;
}
enqueueSnackbar("Error creating meeting. " + message, {
variant: "error",
});
return;
}

Expand Down

0 comments on commit 606628c

Please sign in to comment.