Sanitize entered data.
RecodeExistence opened this issue · 0 comments
RecodeExistence commented
When the data is sent to api call, i need to make sure that it's returning something, otherwise the app crashes.
I must look at how to sanitize in this instance, using type coercion, ensuring that our returned data isn't null or undefined, and then decide how to respond if it's incorrect.
Feel free to submit a pull request if you know how to deal with this. Otherwise, comment and I'll get back to you asap.
LOCATION:
App.js
FUNCTION:
onIconClick()
DATA:
foodNameInput, displayImage.
asdf