Eslint formatting updates (#4234)

* Eslint updated (newline-after-var)

* Fix newline-after-var

* Eslint updated (one-var-declaration-per-line)

* Fix one-var-declaration-per-line

* Fix additional errors

* Lint after merge
This commit is contained in:
Jaco Greeff
2017-01-23 13:39:52 +01:00
committed by GitHub
parent cff64233b4
commit 66e540edf8
165 changed files with 346 additions and 21 deletions

View File

@@ -151,11 +151,13 @@ export default class WalletSettingsStore {
@action onNext = () => {
const stepIndex = this.stepsKeys.findIndex((k) => k === this.step) + 1;
this.step = this.stepsKeys[stepIndex];
}
@action onChange = (_wallet) => {
const newWallet = Object.assign({}, this.wallet, _wallet);
this.validateWallet(newWallet);
}
@@ -178,6 +180,7 @@ export default class WalletSettingsStore {
@action send = () => {
const changes = this.changes;
const walletInstance = this.walletInstance;
this.step = 'SENDING';
this.onTransactionsState('postTransaction');
@@ -193,11 +196,13 @@ export default class WalletSettingsStore {
.pollMethod('parity_checkRequest', id)
.then((txhash) => {
const index = this.requests.findIndex((r) => r.id === id);
this.requests[index].txhash = txhash;
})
.catch((e) => {
if (e.code === ERROR_CODES.REQUEST_REJECTED) {
const index = this.requests.findIndex((r) => r.id === id);
this.requests[index].rejected = true;
return false;
}