Skip to content

Commit cb907ab

Browse files
committed
Merge branch 'master' of https://github.com/ECLK/Results
2 parents 56e76be + 2424149 commit cb907ab

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

src/elections/ResultsForYear.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default class ResultsByYear extends Component {
8585
const mostRecentResults = filterMostRecentResults(resultList);
8686
let recentResultComponent;
8787

88-
if(sessionStorage.getItem('maxTimestamp') >= this.props.currentTimestamp && (sessionStorage.getItem('maxTimestamp')!=0)){
88+
if(sessionStorage.getItem('maxTimestamp') >= this.props.currentTimestamp && (sessionStorage.getItem('maxTimestamp')!==0)){
8989
recentResultComponent = <ResultsView
9090
results={mostRecentResults}
9191
childLabelPrefix="pd"

src/elections/ResultsTable.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,15 @@ export default class ResultsTable extends Component {
279279
);
280280
}.bind(this),
281281
);
282-
var postalVotes = 0;
283-
284-
results.map(
285-
function(result, i) {
286-
if (result.pd_name === "Postal Votes") {
287-
return postalVotes = result.summary.electors;
288-
}
289-
}.bind(this)
290-
);
282+
// var postalVotes = 0;
283+
284+
// results.map(
285+
// function(result, i) {
286+
// if (result.pd_name === "Postal Votes") {
287+
// return postalVotes = result.summary.electors;
288+
// }
289+
// }.bind(this)
290+
// );
291291

292292
const totalElectorsWithPostal = totalElectors;
293293
// const totalElectorsWithPostal = totalElectors + postalVotes;

src/elections/Slider.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import React, {Component} from 'react';
33

44
import {formatTimestamp} from './DataUtils.js';
5-
import {TOTAL_RESULT_COUNT} from './Constants.js';
65

76
/**
87
* Displays a Slider

0 commit comments

Comments
 (0)