Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 8c2fc75

Browse files
author
Manuel Proß
committed
feat(FE): add validator for required input
1 parent e269b0a commit 8c2fc75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

web/src/helpers/validators.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const isRequiredValidator = (value: string) => {
2+
return value ? undefined : 'Required';
3+
};

0 commit comments

Comments
 (0)