Skip to content

Commit c39e24f

Browse files
author
Lucas Araujo
committed
[DDW-796] Fix flow issues
1 parent 8883376 commit c39e24f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

source/renderer/app/components/voting/voting-info/VotingInfo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import TallyingPhase from './TallyingPhase';
1212
import Headline from './Headline';
1313
import AppStore from './AppStore';
1414
import RegisterToVote from './RegisterToVote';
15-
import { FundPhase, FundPhases } from '../../../stores/VotingStore';
15+
import { FundPhases } from '../../../stores/VotingStore';
16+
import type { FundPhase } from '../../../stores/VotingStore';
1617

1718
type Props = {
1819
currentLocale: Locale,

source/renderer/app/stores/VotingStore.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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 () => {

0 commit comments

Comments
 (0)