You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The onSubmit callback prop should only be called if both fields are filled in (with any value).
This makes it sound like they need a ternary in the onSubmit property of the button to only call this.handleSubmit if the conditions are met. I don't THINK that's the intention but I could be wrong. If I'm correct, I would suggest wording it like this:
The callback prop passed to the component should only be called if both fields are filled in (with any value).
The text was updated successfully, but these errors were encountered:
This makes it sound like they need a ternary in the
onSubmit
property of the button to only callthis.handleSubmit
if the conditions are met. I don't THINK that's the intention but I could be wrong. If I'm correct, I would suggest wording it like this:The text was updated successfully, but these errors were encountered: