File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
components/voting/voting-info Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ import TallyingPhase from './TallyingPhase';
1212import Headline from './Headline' ;
1313import AppStore from './AppStore' ;
1414import RegisterToVote from './RegisterToVote' ;
15- import { FundPhase , FundPhases } from '../../../stores/VotingStore' ;
15+ import { FundPhases } from '../../../stores/VotingStore' ;
16+ import type { FundPhase } from '../../../stores/VotingStore' ;
1617
1718type Props = {
1819 currentLocale : Locale ,
Original file line number Diff line number Diff line change @@ -457,8 +457,9 @@ export default class VotingStore extends Store {
457457 [ FundPhases . RESULTS ] : now >= VOTING_RESULTS_DATE ,
458458 } ;
459459 this . fundPhase =
460- Object . values ( FundPhases ) . find ( ( phase ) => phaseValidation [ phase ] ) ||
461- FundPhases . SNAPSHOT ;
460+ Object . keys ( FundPhases )
461+ . map ( ( phase ) => FundPhases [ phase ] )
462+ . find ( ( phase ) => phaseValidation [ phase ] ) || FundPhases . SNAPSHOT ;
462463 } ;
463464
464465 _generateVotingRegistrationKey = async ( ) => {
You can’t perform that action at this time.
0 commit comments