Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

[expo-cli] Improve handling of no answer for customize:web #3128

Merged
merged 1 commit into from
Jan 26, 2021
Merged

[expo-cli] Improve handling of no answer for customize:web #3128

merged 1 commit into from
Jan 26, 2021

Conversation

pckilgore
Copy link
Contributor

@pckilgore pckilgore commented Jan 26, 2021

I spent... too long not realizing I simply hadn't selected anything with space before hitting 'enter' in this menu. The instructional copy was low enough contrast I didn't notice it until after I went debugging here in the code.

Briefly, the answer var will be an empty array if you didn't select anything but still hit "enter", and so this check will always be truthy in that case, firing the subsequent generate function without any copy noting that... nothing happened. This PR clarifies the copy a bit, and makes sure it fires even when selection set is empty.

I spent... too long not realizing I simply hadn't selected anything with space before hitting 'enter' in this menu.  The instructional copy was low enough contrast I didn't notice it until after I went debugging here in the code.

Briefly, the answer var will be an empty array if you didn't select anything but still hit "enter", and so this check will always be truthy in that case, firing the subsequent generate... function without any copy noting that... nothing happened.  This PR clarifies the copy a bit, and makes sure it fires even when selection set is empty.
@pckilgore pckilgore changed the title Improve handling of no answer for customize:web [expo-cli] Improve handling of no answer for customize:web Jan 26, 2021
@EvanBacon EvanBacon merged commit 5ec7756 into expo:master Jan 26, 2021
@EvanBacon EvanBacon added enhancement New feature or request error message improvement needed Platform: web Using Expo in the browser labels Jan 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request error message improvement needed Platform: web Using Expo in the browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants