fix: reschedule reason title in email (#7746)

* fix: reschedule reason title

* fix: remove aditional check
pull/7765/head
Nafees Nazik 2023-03-16 08:51:59 +05:30 committed by GitHub
parent 0f6a678b74
commit 325dc9805f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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