You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.
Add new App validateElection(election: Election) method and use it to validate the election object when it comes from any source: uploaded file, localStorage, etc.
Replace the App componentDidCatch() method (from Bug: Clear localStorage if there is an error with the data. #104) with call to new App validateElection(election: Election) method which can then trigger the App reset() method before rendering and causing the error.
The text was updated successfully, but these errors were encountered:
We need to think about how to connect json schema to typescript type.
beausmith
changed the title
Test that uploaded election.json file matches expected object shape.
Test uploaded election file and localStorage data to confirm they match expected election object shape.
Mar 7, 2019
beausmith
changed the title
Test uploaded election file and localStorage data to confirm they match expected election object shape.
Lint uploaded election file and localStorage data to confirm they match expected election object shape.
May 8, 2019
validateElection(election: Election)
method and use it to validate theelection
object when it comes from any source: uploaded file, localStorage, etc.componentDidCatch()
method (from Bug: Clear localStorage if there is an error with the data. #104) with call to new AppvalidateElection(election: Election)
method which can then trigger the Appreset()
method before rendering and causing the error.The text was updated successfully, but these errors were encountered: