From e8750ec3bdfee649c83d35860aa1f9ddc0af7ef8 Mon Sep 17 00:00:00 2001 From: devcshort <13677134+devcshort@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:18:44 -0700 Subject: [PATCH] feat: Add service area name and description --- src/features/resource/components/information.tsx | 1 + src/shared/services/resource-service.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/features/resource/components/information.tsx b/src/features/resource/components/information.tsx index 0d0fb38b..0549376b 100644 --- a/src/features/resource/components/information.tsx +++ b/src/features/resource/components/information.tsx @@ -183,6 +183,7 @@ export function Information({ resource }) {
{t('service_area')}
+{resource.serviceAreaName}
{resource.serviceAreaDescription}
)} diff --git a/src/shared/services/resource-service.ts b/src/shared/services/resource-service.ts index bd6dd512..90d575c4 100644 --- a/src/shared/services/resource-service.ts +++ b/src/shared/services/resource-service.ts @@ -42,8 +42,8 @@ export class ResourceService { fees: data?.translation?.fees, requiredDocuments: data?.translation?.requiredDocuments ?? null, eligibilities: data?.translation?.eligibilities ?? null, - serviceAreaDescription: - data?.serviceArea?.description?.join(', ') ?? null, + serviceAreaDescription: data?.serviceAreaDescription ?? null, + serviceAreaName: data?.serviceAreaName ?? null, categories: data?.translation?.taxonomies ?? null, lastAssuredOn: data?.lastAssuredDate ? dayjs(data.lastAssuredDate).format('MM/DD/YYYY')