From 2bbedee33f1c75d8069d2f5c550a53860c4c92e6 Mon Sep 17 00:00:00 2001 From: devcshort <13677134+devcshort@users.noreply.github.com> Date: Wed, 15 May 2024 12:48:34 -0700 Subject: [PATCH] Favor translation display name when available --- packages/client/lib/adapters/ResourceAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/lib/adapters/ResourceAdapter.ts b/packages/client/lib/adapters/ResourceAdapter.ts index 0f8e6a81..6d418e7e 100644 --- a/packages/client/lib/adapters/ResourceAdapter.ts +++ b/packages/client/lib/adapters/ResourceAdapter.ts @@ -46,7 +46,7 @@ export class ResourceAdapter extends BaseAdapter { return { id: data._id, serviceName: data?.translation?.serviceName ?? null, - name: data?.displayName ?? null, + name: data?.translation?.displayName ?? data?.displayName ?? null, description: data?.translation?.serviceDescription ?? null, phone: data?.phoneNumbers?.find((p: any) => p.rank === 1 && p.type === 'voice')