From b629333eb80072a345065789b1b4b77d2e50b838 Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Thu, 3 Nov 2022 10:40:42 +0100 Subject: [PATCH] fix dynamic location variable (#5345) Co-authored-by: CarinaWolli --- .../ee/workflows/lib/reminders/templates/customTemplate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/features/ee/workflows/lib/reminders/templates/customTemplate.ts b/packages/features/ee/workflows/lib/reminders/templates/customTemplate.ts index df8adebac4..a570f908a2 100644 --- a/packages/features/ee/workflows/lib/reminders/templates/customTemplate.ts +++ b/packages/features/ee/workflows/lib/reminders/templates/customTemplate.ts @@ -20,7 +20,7 @@ const customTemplate = async (text: string, variables: VariablesType, locale: st let locationString = variables.location || ""; if (text.includes("{LOCATION}")) { - locationString = guessEventLocationType(locationString)?.label || ""; + locationString = guessEventLocationType(locationString)?.label || locationString; } let dynamicText = text