Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CE-1175-correct-error-message-text #728

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading