Skip to content

Commit 431f3de

Browse files
committed
Check on null when validating org.number
1 parent a1d0ea2 commit 431f3de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared-components/src/formio/components/extensions/organization-number/OrganizationNumber.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class OrganizationNumber extends TextField {
3232
}
3333

3434
validateOrganizationNumber(organizationNumber) {
35-
if (organizationNumber === '') {
35+
if (organizationNumber === '' || organizationNumber === null) {
3636
return true;
3737
}
3838

0 commit comments

Comments
 (0)