From 192dd6e121af82e8430c0a9d6c7ba4ec034de357 Mon Sep 17 00:00:00 2001 From: devinleighsmith Date: Wed, 1 May 2024 14:27:54 -0700 Subject: [PATCH] psp-8252 remove unecessary cast from/to string --- .../consolidation/AddConsolidationView.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/source/frontend/src/features/mapSideBar/consolidation/AddConsolidationView.tsx b/source/frontend/src/features/mapSideBar/consolidation/AddConsolidationView.tsx index f3f742ba57..a6eedf7225 100644 --- a/source/frontend/src/features/mapSideBar/consolidation/AddConsolidationView.tsx +++ b/source/frontend/src/features/mapSideBar/consolidation/AddConsolidationView.tsx @@ -17,7 +17,7 @@ import { PropertySelectorPidSearchContainerProps } from '@/components/propertySe import PropertySearchSelectorPidFormView from '@/components/propertySelector/search/PropertySelectorPidSearchView'; import { AreaUnitTypes } from '@/constants/areaUnitTypes'; import { ApiGen_Concepts_Property } from '@/models/api/generated/ApiGen_Concepts_Property'; -import { convertArea, exists, formatNumber } from '@/utils'; +import { convertArea, exists } from '@/utils'; import MapSideBarLayout from '../layout/MapSideBarLayout'; import { AddressForm, PropertyForm } from '../shared/models'; @@ -70,11 +70,6 @@ const AddConsolidationView: React.FunctionComponent< MapSelectorComponent, PropertySelectorPidSearchComponent, }) => { - const getAreaValue = (area: number, unit: string): number => { - const sqm = convertArea(area, unit, AreaUnitTypes.SquareMeters); - return Number(formatNumber(sqm, 0, 3)); - }; - return (