There is logic to handle errors in the app. This should be extracted and tested in /utils
These should be pure functions that don't modify state. For example, something like this:
// Returns true / false if a category is valid.
// maybe returns an error message
const isValidCategory()...