Skip to content

Commit

Permalink
fix: CE-1175-correct-error-message-text (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitri-korin-bcps authored Oct 29, 2024
1 parent 4bf412a commit da38c8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/app/components/common/comp-coordinate-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@ export const CompCoordinateInput: FC<Props> = ({
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();
Expand Down

0 comments on commit da38c8b

Please sign in to comment.