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

Commit

Permalink
Disable contest and choice auto-matching
Browse files Browse the repository at this point in the history
  • Loading branch information
gws committed Nov 8, 2019
1 parent ee778ee commit 63576c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion client/script/dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cd "${CLIENT_DIR}"
rm -rf dist

# Build production JavaScript bundle.
"$(npm bin)/webpack" -p --config webpack.config.prod.js --output-filename bundle.js
./node_modules/.bin/webpack -p --config webpack.config.prod.js --output-filename bundle.js

# Copy root HTML document.
cp index.prod.html dist/index.html
Expand Down
11 changes: 1 addition & 10 deletions client/src/component/DOS/DefineAudit/StandardizeChoicesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,7 @@ const TableRow = (props: TableRowProps) => {

const choices = row.choices;

const defaultName = defaultCanonicalName(row.choiceName, choices);

// Trigger an update when a default gets chosen
if ('' !== defaultName) {
updateFormData({
contestId: row.contestId,
currentChoiceName: row.choiceName,
newChoiceName: defaultName,
});
}
const defaultName = '';

const changeHandler = (e: React.FormEvent<HTMLSelectElement>) => {
const v = e.currentTarget.value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,7 @@ const ContestRow = (props: ContestRowProps) => {

const standards = canonicalContests[countyName];

const defaultName = defaultCanonicalName(contest.name, standards);

// Trigger an update when a default gets chosen
if ('' !== defaultName) {
updateFormData({ id: contest.id, name: defaultName });
}
const defaultName = '';

const changeHandler = (e: React.FormEvent<HTMLSelectElement>) => {
const v = e.currentTarget.value;
Expand Down

0 comments on commit 63576c8

Please sign in to comment.