[WEB-522] chore: handled numeric validation on estimate point update in categories (#4819)

* dev: handled numeric validation on estimate point update

* chore: updated number comparision in estimate category type
This commit is contained in:
guru_sainath 2024-06-14 16:51:26 +05:30 committed by GitHub
parent fd9f0fb17c
commit 707c4f9e8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ export const EstimatePointCreate: FC<TEstimatePointCreate> = observer((props) =>
isEstimateValid = true;
}
} else if (currentEstimateType && currentEstimateType === EEstimateSystem.CATEGORIES) {
if (estimateInputValue && estimateInputValue.length > 0 && Number(estimateInputValue) < 0) {
if (estimateInputValue && estimateInputValue.length > 0 && isNaN(Number(estimateInputValue))) {
isEstimateValid = true;
}
}

View File

@ -91,7 +91,7 @@ export const EstimatePointUpdate: FC<TEstimatePointUpdate> = observer((props) =>
isEstimateValid = true;
}
} else if (currentEstimateType && currentEstimateType === EEstimateSystem.CATEGORIES) {
if (estimateInputValue && estimateInputValue.length > 0) {
if (estimateInputValue && estimateInputValue.length > 0 && isNaN(Number(estimateInputValue))) {
isEstimateValid = true;
}
}