Skip to content

Commit 8542e5c

Browse files
fix: name validation
1 parent 986194d commit 8542e5c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/import/Step1.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ const Step1: FC<Props> = ({ projectName, onSubmit, onCompletion }) => {
2121
(name: string) => {
2222
onSubmit(name)
2323

24-
if (validateName(name) === '') {
24+
if (isValidName(name)) {
2525
onCompletion()
2626
}
2727
},
28-
[onSubmit, onCompletion, validateName],
28+
[onSubmit, onCompletion],
2929
)
3030

3131
return (

0 commit comments

Comments
 (0)