diff --git a/src/components/BallotCard/index.js b/src/components/BallotCard/index.js index acf5589..c20c318 100644 --- a/src/components/BallotCard/index.js +++ b/src/components/BallotCard/index.js @@ -317,7 +317,7 @@ export class BallotCard extends React.Component { contractsStore.votingKey ) } catch (e) { - console.log(e.message) + console.error(e.message) } this.hasAlreadyVoted = _hasAlreadyVoted } @@ -328,7 +328,7 @@ export class BallotCard extends React.Component { try { _isValidVote = await this.getContract(contractsStore, votingType).isValidVote(id, contractsStore.votingKey) } catch (e) { - console.log(e.message) + console.error(e.message) } return _isValidVote } @@ -443,7 +443,6 @@ export class BallotCard extends React.Component { } cancel = async e => { - console.log('cancel function called') const { votingState, contractsStore, commonStore, ballotsStore, votingType, id, pos } = this.props const { push } = this.props.routing const contract = this.getContract(contractsStore, votingType) @@ -493,7 +492,6 @@ export class BallotCard extends React.Component { } finalize = async e => { - console.log('finalize function called') if (this.timeToStart.val > 0) { swal('Warning!', messages.ballotIsNotActiveMsg(this.timeTo.displayValue), 'warning') return @@ -515,7 +513,7 @@ export class BallotCard extends React.Component { await this.canBeFinalizedNow() let _canBeFinalized = this.canBeFinalized if (_canBeFinalized === null) { - console.log('canBeFinalizedNow is not existed') + console.log('canBeFinalizedNow does not exist') _canBeFinalized = !(await this.isActive()) } if (!_canBeFinalized) { diff --git a/src/stores/BallotStore.js b/src/stores/BallotStore.js index 6c7c110..14d18b5 100644 --- a/src/stores/BallotStore.js +++ b/src/stores/BallotStore.js @@ -72,7 +72,6 @@ class BallotStore { @computed get endTimeUnix() { - console.log(this.endTime) return moment(this.endTime).unix() } @@ -133,19 +132,16 @@ class BallotStore { @action('change ballot type') changeBallotType = (e, _ballotType) => { - console.log('change ballot type', _ballotType) this.ballotType = _ballotType } @action('change keys ballot type') changeKeysBallotType = (e, _keysBallotType) => { - console.log('change keys ballot type', _keysBallotType) this.ballotKeys.keysBallotType = _keysBallotType } @action('change affected key type') changeKeyType = (e, _keyType) => { - console.log('change affected key type', _keyType) this.ballotKeys.keyType = _keyType } @@ -154,17 +150,14 @@ class BallotStore { let newVal = e ? (e.target ? e.target.value : e.value) : '' if (parent) this[parent][field] = newVal else this[field] = newVal - console.log('ballot metadata', field, parent ? this[parent][field] : this[field]) } @action('change ballot metadata') setMiningKey = value => { this.ballotKeys.miningKey = value - console.log('ballot mining key', toJS(value)) } @action('Set ballot memo') setMemo(e) { - console.log('memo', this.memo) this.memo = e.target.value } }