From da38c8bf9f09ec54f5ee7b4ce9a5bccbaee7808e Mon Sep 17 00:00:00 2001 From: dmitri-korin-bcps <108112696+dmitri-korin-bcps@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:34:33 -0700 Subject: [PATCH] fix: CE-1175-correct-error-message-text (#728) --- .../src/app/components/common/comp-coordinate-input.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/components/common/comp-coordinate-input.tsx b/frontend/src/app/components/common/comp-coordinate-input.tsx index 37a4dceab..bb383200d 100644 --- a/frontend/src/app/components/common/comp-coordinate-input.tsx +++ b/frontend/src/app/components/common/comp-coordinate-input.tsx @@ -116,11 +116,12 @@ export const CompCoordinateInput: FC = ({ let lat; let lng; - const errorTextSuffix = `The corresponding longitude value must be between ${bcBoundaries.minLongitude} and ${bcBoundaries.maxLongitude} degrees`; + const errorTextSuffixLat = `The corresponding latitude value must be between ${bcBoundaries.minLatitude} and ${bcBoundaries.maxLatitude} degrees`; + const errorTextSuffixLng = `The corresponding longitude value must be between ${bcBoundaries.minLongitude} and ${bcBoundaries.maxLongitude} degrees`; const eastingErrorText = - `Invalid Easting. Easting value must be between 290220.6 and 720184.9 metres.` + errorTextSuffix; + `Invalid Easting. Easting value must be between 290220.6 and 720184.9 metres. ` + errorTextSuffixLng; const northingErrorText = - `Invalid Northing. Northing value must be between 5346051.7 and 6655120.8 metres.` + errorTextSuffix; + `Invalid Northing. Northing value must be between 5346051.7 and 6655120.8 metres. ` + errorTextSuffixLat; const zoneErrorText = `Invalid Zone. Must be in 7-11 range`; let utm = new utmObj();