diff --git a/app/(authenticated)/calendar/[eventID]/CheckWithTech.tsx b/app/(authenticated)/calendar/[eventID]/CheckWithTech.tsx index b3d675ca..2483dd30 100644 --- a/app/(authenticated)/calendar/[eventID]/CheckWithTech.tsx +++ b/app/(authenticated)/calendar/[eventID]/CheckWithTech.tsx @@ -97,13 +97,25 @@ function PostMessage(props: { loading={isPending} onClick={() => startTransition(async () => { - await doCheckWithTech(props.eventID, memo, props.isConfident); - notifications.show({ - title: "Sent!", - message: - "Keep an eye out on Slack in case the tech team need any further details.", - }); - props.done(); + const result = await doCheckWithTech( + props.eventID, + memo, + props.isConfident, + ); + if (result.ok) { + notifications.show({ + title: "Sent!", + message: + "Keep an eye out on Slack in case the tech team need any further details.", + }); + props.done(); + } else { + notifications.show({ + title: "Sorry, something went wrong...", + message: result.errors?.root ?? "Please try again later.", + color: "red", + }); + } }) } leftSection={} diff --git a/app/(authenticated)/calendar/[eventID]/SignupSheet.tsx b/app/(authenticated)/calendar/[eventID]/SignupSheet.tsx index e9415e56..3321b793 100644 --- a/app/(authenticated)/calendar/[eventID]/SignupSheet.tsx +++ b/app/(authenticated)/calendar/[eventID]/SignupSheet.tsx @@ -456,6 +456,7 @@ export function SignupSheetsView({ !event.is_cancelled && dayjs(event.start_date).isAfter(new Date()) && (event.created_by === me.user_id ? ( + // No need for this to be a canManageAnySignUpSheet, because there isn't one yet