Skip to content

Sanitize entered data.  #1

@RecodeExistence

Description

@RecodeExistence

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

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions