Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

feat: more versatile errors on homepage #76

Merged
merged 2 commits into from
Feb 5, 2019
Merged

Conversation

ImmanuelSegol
Copy link
Contributor

closes #71

@ghost ghost assigned ImmanuelSegol Feb 2, 2019
@ghost ghost added the in progress label Feb 2, 2019
onPress={error ? () => {} : () => this.shouldSubmit()}
errorText={'Invalid amount'}
errorText={inputError ? 'Invalid amount' : errorMessage}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it is fine to have Invalid amount as default error? Would it be better to get rid of the error boolean and just have the string errorText that determines whether there is an error and sets the text of the button?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michael1011 My idea was that the input error would always override any other error.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that sounds reasonable.

@michael1011 michael1011 merged commit 701878b into master Feb 5, 2019
@ghost ghost removed the in progress label Feb 5, 2019
@michael1011 michael1011 deleted the versatile-errors branch February 5, 2019 19:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More versatile error state message on the home page
2 participants