Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Fix) Temporarily remove Validator fields from the New Ballot page #198

Merged
merged 1 commit into from
Apr 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions src/components/NewBallot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions src/components/Validator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down