File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff line change 22import React , { Component } from 'react' ;
33
44import { formatTimestamp } from './DataUtils.js' ;
5- import { TOTAL_RESULT_COUNT } from './Constants.js' ;
65
76/**
87 * Displays a Slider
You can’t perform that action at this time.
0 commit comments