From 0a32885ef1832303bf2d7bd3df405af790e37681 Mon Sep 17 00:00:00 2001 From: Vadim Arasev Date: Tue, 19 Jun 2018 14:25:31 +0300 Subject: [PATCH] (Fix) Remove unused vars and comments --- src/components/BallotCard.jsx | 2 -- src/stores/ContractsStore.js | 8 -------- 2 files changed, 10 deletions(-) diff --git a/src/components/BallotCard.jsx b/src/components/BallotCard.jsx index 9df1ac4..a748b35 100644 --- a/src/components/BallotCard.jsx +++ b/src/components/BallotCard.jsx @@ -50,9 +50,7 @@ export class BallotCard extends React.Component { if (this.isFinalized) { return ''; } - const { contractsStore, votingType } = this.props; let description = 'Finalization is available after ballot time is finished'; - //if (this.getContract(contractsStore, votingType).doesMethodExist('canBeFinalizedNow')) { if (this.canBeFinalized !== null) { description += ' or all validators are voted'; } diff --git a/src/stores/ContractsStore.js b/src/stores/ContractsStore.js index 505e210..0ce1a04 100644 --- a/src/stores/ContractsStore.js +++ b/src/stores/ContractsStore.js @@ -265,19 +265,11 @@ class ContractsStore { @action async getAllValidatorMetadata() { - //this.validatorsMetadata.push(constants.NEW_MINING_KEY); this.validatorsMetadata[constants.NEW_MINING_KEY.value] = constants.NEW_MINING_KEY; - const keys = await this.poaConsensus.getValidators(); this.validatorsLength = keys.length; keys.forEach(async (key) => { const metadata = await this.validatorMetadata.getValidatorFullName({miningKey: key}) - //this.validatorsMetadata.push({ - // label: `${key} ${metadata.lastName}`, - // lastNameAndKey: `${metadata.lastName} ${key}`, - // fullName: `${metadata.firstName} ${metadata.lastName}`, - // value: key - //}) this.validatorsMetadata[key.toLowerCase()] = { label: `${key} ${metadata.lastName}`, lastNameAndKey: `${metadata.lastName} ${key}`,