sandboxnu / ScoutTrek-Frontend

The future of Scouting
Other
1 stars 0 forks source link

Catch errors and display to users #31

Closed SimChadha closed 1 year ago

SimChadha commented 1 year ago

There's a variety of errors that occur in the app that cause an exception instead of just notifying the user. Instead of the app crashing or generating an exception, we need to validate the data the user provides and display error text if necessary.

SimChadha commented 1 year ago

As per conversation at GM: Create an error toast component that displays an error whenever a backend error is received. From there, this toast should show up on all errors, and prevent us from having to build error logic in every place. @dylan-pham @elliot-goodman