Skip to content

Commit

Permalink
Favor translation display name when available
Browse files Browse the repository at this point in the history
  • Loading branch information
devcshort committed May 15, 2024
1 parent 8ce5a3c commit 2bbedee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/lib/adapters/ResourceAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 2bbedee

Please sign in to comment.