Skip to content

Commit

Permalink
Implemented validation for Add a new risk popup
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaevgeniya committed Nov 12, 2024
1 parent 6a5c356 commit 36084c5
Show file tree
Hide file tree
Showing 4 changed files with 540 additions and 248 deletions.
5 changes: 3 additions & 2 deletions Clients/src/application/validations/stringValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ export function checkStringValidation(
type?: string
): { accepted: boolean; message: string } {
if (
value.length === 0 ||
(value.length === 0 ||
value === undefined ||
value === null ||
value === "" ||
value === " "
value === " ") &&
minLength > 0
) {
return feedbackToString(false, `${title} is required.`);
}
Expand Down
Loading

0 comments on commit 36084c5

Please sign in to comment.