diff --git a/packages/yoroi-extension/app/containers/wallet/voting/VotingPageContent.js b/packages/yoroi-extension/app/containers/wallet/voting/VotingPageContent.js index cfcfbcff56..87ba52c841 100644 --- a/packages/yoroi-extension/app/containers/wallet/voting/VotingPageContent.js +++ b/packages/yoroi-extension/app/containers/wallet/voting/VotingPageContent.js @@ -164,21 +164,11 @@ class VotingPageContent extends Component { registrationStart: nextFund?.registrationStart, }); - const fund = { - id: 8, - name: 'Fund9', - registrationStart: '2021-01-27T11:00:00Z', - registrationEnd: '2023-08-04T11:00:00Z', - votingStart: '2021-08-11T11:00:00Z', - votingEnd: '2023-08-25T11:00:00Z', - votingPowerThreshold: '450', - }; - if (currentFund) { - const isLate = new Date() >= new Date(Date.parse(fund.registrationEnd)); - const isEarly = new Date() <= new Date(Date.parse(fund.registrationStart)); - const isBeforeVoting = new Date() <= new Date(Date.parse(fund.votingStart)); - const isAfterVoting = new Date() >= new Date(Date.parse(fund.votingEnd)); + const isLate = new Date() >= new Date(Date.parse(currentFund.registrationEnd)); + const isEarly = new Date() <= new Date(Date.parse(currentFund.registrationStart)); + const isBeforeVoting = new Date() <= new Date(Date.parse(currentFund.votingStart)); + const isAfterVoting = new Date() >= new Date(Date.parse(currentFund.votingEnd)); const isBetweenVoting = !isBeforeVoting && !isAfterVoting; if (isEarly) { diff --git a/packages/yoroi-extension/package-lock.json b/packages/yoroi-extension/package-lock.json index fdedc89f3a..106b769f2d 100644 --- a/packages/yoroi-extension/package-lock.json +++ b/packages/yoroi-extension/package-lock.json @@ -1,6 +1,6 @@ { "name": "yoroi", - "version": "4.22.200", + "version": "4.22.300", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/yoroi-extension/package.json b/packages/yoroi-extension/package.json index db2302fd41..a08dddc3c8 100644 --- a/packages/yoroi-extension/package.json +++ b/packages/yoroi-extension/package.json @@ -1,6 +1,6 @@ { "name": "yoroi", - "version": "4.22.200", + "version": "4.22.300", "description": "Cardano ADA wallet", "scripts": { "dev:build": "rimraf dev/ && babel-node scripts/build --type=debug",