From 3451e9a2405aca5b0aab860e0cbe3aca7898b45c Mon Sep 17 00:00:00 2001 From: Vadim Date: Tue, 2 Apr 2019 09:19:33 +0300 Subject: [PATCH] Temporarily remove Validator fields on the `New Ballot` page --- src/components/NewBallot/index.js | 19 ++++++++++--------- src/components/Validator/index.js | 1 + 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/components/NewBallot/index.js b/src/components/NewBallot/index.js index 4bea7f2..2a5a61b 100644 --- a/src/components/NewBallot/index.js +++ b/src/components/NewBallot/index.js @@ -42,15 +42,16 @@ export class NewBallot extends React.Component { checkValidation() { const { commonStore, contractsStore, ballotStore, validatorStore } = this.props - if (ballotStore.isNewValidatorPersonalData) { - for (let validatorProp in validatorStore) { - if (validatorStore[validatorProp].length === 0) { - swal('Warning!', `Validator ${validatorProp} is empty`, 'warning') - commonStore.hideLoading() - return false - } - } - } + // Temporarily commented (until we implement https://github.com/poanetwork/poa-dapps-voting/issues/120) + // if (ballotStore.isNewValidatorPersonalData) { + // for (let validatorProp in validatorStore) { + // if (validatorStore[validatorProp].length === 0) { + // swal('Warning!', `Validator ${validatorProp} is empty`, 'warning') + // commonStore.hideLoading() + // return false + // } + // } + // } if (!ballotStore.memo) { swal('Warning!', messages.DESCRIPTION_IS_EMPTY, 'warning') diff --git a/src/components/Validator/index.js b/src/components/Validator/index.js index 1d525af..a00e95b 100644 --- a/src/components/Validator/index.js +++ b/src/components/Validator/index.js @@ -63,6 +63,7 @@ export class Validator extends React.Component { } render() { + return null // Temporarily empty (until we implement https://github.com/poanetwork/poa-dapps-voting/issues/120) const { validatorStore, networkBranch } = this.props const inputProps = { value: validatorStore.address,