Skip to content

Commit fbd9156

Browse files
authoredFeb 8, 2022
fix: make site suggestion flow consistent (#4185)
1 parent b6345b7 commit fbd9156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/commands/sites/sites-create.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const getSiteNameInput = async (name, user, api) => {
5050
validate: (input) => /^[a-zA-Z\d-]+$/.test(input) || 'Only alphanumeric characters and hyphens are allowed',
5151
},
5252
])
53-
name = nameInput
53+
name = nameInput || siteSuggestion
5454
}
5555

5656
return { name, siteSuggestion }

1 commit comments

Comments
 (1)

github-actions[bot] commented on Feb 8, 2022

@github-actions[bot]

📊 Benchmark results

Package size: 377 MB

Please sign in to comment.