fix dynamic location variable (#5345)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
pull/5326/head
Carina Wollendorfer 2022-11-03 10:40:42 +01:00 committed by GitHub
parent 06eca4b28a
commit b629333eb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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