From 05b376180118939f871cfeee0073f5eea7d0af04 Mon Sep 17 00:00:00 2001 From: JORGE Date: Fri, 27 Dec 2024 14:53:27 -0400 Subject: [PATCH 1/2] [TM-1560] fix modal and add name correct --- .../PolygonReviewTab/components/PolygonStatus/StatusDisplay.tsx | 2 +- src/components/extensive/Modal/ModalConfirm.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/admin/components/ResourceTabs/PolygonReviewTab/components/PolygonStatus/StatusDisplay.tsx b/src/admin/components/ResourceTabs/PolygonReviewTab/components/PolygonStatus/StatusDisplay.tsx index 667b976af..b58e3da1f 100644 --- a/src/admin/components/ResourceTabs/PolygonReviewTab/components/PolygonStatus/StatusDisplay.tsx +++ b/src/admin/components/ResourceTabs/PolygonReviewTab/components/PolygonStatus/StatusDisplay.tsx @@ -218,7 +218,7 @@ const StatusDisplay = ({ {" "} - {titleStatus == AuditLogEntityEnum.Polygon ? record?.title : removeUnderscore(name)}. + {titleStatus == AuditLogEntityEnum.Polygon ? record?.title || record?.poly_name : removeUnderscore(name)}. ); diff --git a/src/components/extensive/Modal/ModalConfirm.tsx b/src/components/extensive/Modal/ModalConfirm.tsx index b0fa4dd8f..64f8d5823 100644 --- a/src/components/extensive/Modal/ModalConfirm.tsx +++ b/src/components/extensive/Modal/ModalConfirm.tsx @@ -43,7 +43,7 @@ const ModalConfirm: FC = ({ }; return ( - +
{title} From 62a8d51b6929a02fa5466de57d79cbaae1115d0b Mon Sep 17 00:00:00 2001 From: JORGE Date: Fri, 27 Dec 2024 15:00:18 -0400 Subject: [PATCH 2/2] [TM-1560] update snapshot --- .../Modal/__snapshots__/ModalConfirm.stories.storyshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/extensive/Modal/__snapshots__/ModalConfirm.stories.storyshot b/src/components/extensive/Modal/__snapshots__/ModalConfirm.stories.storyshot index 65df9f6a5..595f4d86d 100644 --- a/src/components/extensive/Modal/__snapshots__/ModalConfirm.stories.storyshot +++ b/src/components/extensive/Modal/__snapshots__/ModalConfirm.stories.storyshot @@ -5,7 +5,7 @@ exports[`Storyshots Components/Extensive/Modal/ModalConfirm Default 1`] = ` className="flex items-center justify-center bg-primary-400 p-8" >