fix dynamic location variable (#5345)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
Carina WollendorferandCarinaWolli authored and GitHub committed 2022-11-03 10:40:42 +01:00
1 parent 06eca4b28a
commit b629333eb8
1 file changed
+1 -1
@@ -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