From b893afb8b82f74c01fc561c5ead26627bd1081bc Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Tue, 1 Aug 2023 16:56:26 +0530 Subject: [PATCH] fix: Address translation problem (#10492) --- packages/app-store/locations.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app-store/locations.ts b/packages/app-store/locations.ts index bb10026bc9..42d17c8b47 100644 --- a/packages/app-store/locations.ts +++ b/packages/app-store/locations.ts @@ -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 || ""; };