fix: reschedule reason title in email (#7746)

* fix: reschedule reason title

* fix: remove aditional check
This commit is contained in:
Nafees Nazik authored and GitHub committed 2023-03-16 03:21:59 +00:00
1 parent 0f6a678b74
commit 325dc9805f
1 file changed
+5 -1
@@ -60,7 +60,11 @@ export const BaseScheduledEmail = (
subtitle={props.subtitle || <>{t("emailed_you_and_any_other_attendees")}</>}>
{props.calEvent.cancellationReason && (
<Info
label={t("cancellation_reason")}
label={t(
props.calEvent.cancellationReason.startsWith("$RCH$")
? "reschedule_reason"
: "cancellation_reason"
)}
description={
!!props.calEvent.cancellationReason && props.calEvent.cancellationReason.replace("$RCH$", "")
} // Removing flag to distinguish reschedule from cancellation