Skip to content
This repository was archived by the owner on Nov 11, 2019. It is now read-only.

Commit

Permalink
Force contest and choice pages to wait on contests to load
Browse files Browse the repository at this point in the history
  • Loading branch information
gws committed Jun 7, 2019
1 parent f4291e0 commit b678511
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/src/reducer/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ export default function root(state: AppState, action: Action.App) {
const nextState = { ...state } as DOS.AppState;

nextState.settingAuditInfo = false;
// XXX: Done to force component to wait for contests to load after audit
// info was set.
nextState.contests = [];

return nextState;
}
Expand All @@ -159,6 +162,9 @@ export default function root(state: AppState, action: Action.App) {
const nextState = { ...state } as DOS.AppState;

nextState.standardizingContests = false;
// XXX: Done to force component to wait for choices to load after
// contest standardization was done.
nextState.contests = [];

return nextState;
}
Expand Down

0 comments on commit b678511

Please sign in to comment.