Fixes undefined link in opt-in email

This commit is contained in:
zomars
2022-06-14 08:55:21 -06:00
parent cb66f96b63
commit 74704bb699
@@ -16,9 +16,8 @@ export const OrganizerRequestEmail = (props: React.ComponentProps<typeof Organiz
<CallToAction
label={props.calEvent.organizer.language.translate("confirm_or_reject_request")}
href={
process.env.NEXT_PUBLIC_WEBAPP_URL + props.calEvent.recurringEvent?.count
? "/bookings/recurring"
: "/bookings/upcoming"
process.env.NEXT_PUBLIC_WEBAPP_URL +
(props.calEvent.recurringEvent?.count ? "/bookings/recurring" : "/bookings/upcoming")
}
/>
</CallToActionTable>