Open beausmith opened 5 years ago
https://github.com/jquense/yup
Check that id
matches title
(if this is a thing) by using this as a starting point:
https://github.com/jaredpalmer/formik/issues/90#issuecomment-317804880
We need to think about how to connect json schema to typescript type.
validateElection(election: Election)
method and use it to validate theelection
object when it comes from any source: uploaded file, localStorage, etc.componentDidCatch()
method (from https://github.com/votingworks/bmd/issues/104) with call to new AppvalidateElection(election: Election)
method which can then trigger the Appreset()
method before rendering and causing the error.