Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
Fix: unable to add a monitor because of status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaumaus committed Aug 26, 2024
1 parent cd143d3 commit 789b06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pages/Project/uptime/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const UptimeSettings = (): JSX.Element => {
if (
acceptedStatusCodes.some((statusCode) => {
const trimmedStatusCode = Number(statusCode.trim())
return !_isNaN(trimmedStatusCode) && trimmedStatusCode >= 100 && trimmedStatusCode <= 599
return _isNaN(trimmedStatusCode) || trimmedStatusCode < 100 || trimmedStatusCode > 599
})
) {
allErrors.acceptedStatusCodes = t('monitor.error.acceptedStatusCodesNotValid')
Expand Down

0 comments on commit 789b06f

Please sign in to comment.