Skip to content

Commit b03baca

Browse files
committed
fix: removes 2 second wait on phonevalidation that was used to demo async functionality
1 parent e37b030 commit b03baca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/services/defaults/DefaultInputValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const validateEmail = (output: any): ValidationResult => {
3838

3939
const validatePhone = async (output: any): Promise<ValidationResult> => {
4040
// Wait for 2 seconds to demo
41-
await new Promise(resolve => setTimeout(resolve, 2000));
41+
// await new Promise(resolve => setTimeout(resolve, 2000));
4242

4343
const phoneRegex = /^[0-9]{8,}$/;
4444
const valid = typeof output === 'string' && phoneRegex.test(output);

0 commit comments

Comments
 (0)