fix: Address translation problem (#10492)

pull/10501/head
Anik Dhabal Babu 2023-08-01 16:56:26 +05:30 committed by GitHub
parent 6fa54aba46
commit b893afb8b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -303,13 +303,13 @@ export const getHumanReadableLocationValue = (
// Just in case linkValue is a `locationType.type`(for old bookings)
const eventLocationType = getEventLocationType(linkValue);
const isDefault = eventLocationType?.default;
if (eventLocationType) {
// If we can find a video location based on linkValue then it means that the linkValue is something like integrations:google-meet and in that case we don't have the meeting URL to show.
// Show a generic message in that case.
return `${eventLocationType.label}`;
return isDefault ? translationFunction(eventLocationType.label) : `${eventLocationType.label}`;
}
// Otherwise just show the available link value which can be a Phone number, a URL or a physical address of a place.
// Otherwise just show the available link value.
return linkValue || "";
};