Addressing tiny grumbles

This commit is contained in:
Tomasz Drwięga 2016-11-29 11:52:55 +01:00
parent 8686339b0c
commit 1a6ee533ed
3 changed files with 6 additions and 9 deletions

View File

@ -72,9 +72,8 @@ export default class SignerMiddleware {
}; };
// Sign request in-browser // Sign request in-browser
if (wallet && (payload.sendTransaction || payload.signTransaction)) { const transaction = payload.sendTransaction || payload.signTransaction;
const transaction = payload.sendTransaction || payload.signTransaction; if (wallet && transaction) {
(transaction.nonce.isZero() (transaction.nonce.isZero()
? this._api.parity.nextNonce(transaction.from) ? this._api.parity.nextNonce(transaction.from)
: Promise.resolve(transaction.nonce) : Promise.resolve(transaction.nonce)

View File

@ -59,9 +59,8 @@ export default class RequestFinished extends Component {
); );
} }
if (payload.sendTransaction || payload.signTransaction) { const transaction = payload.sendTransaction || payload.signTransaction;
const transaction = payload.sendTransaction || payload.signTransaction; if (transaction) {
return ( return (
<TransactionFinished <TransactionFinished
className={ className } className={ className }

View File

@ -65,9 +65,8 @@ export default class RequestPending extends Component {
); );
} }
if (payload.sendTransaction || payload.signTransaction) { const transaction = payload.sendTransaction || payload.signTransaction;
const transaction = payload.sendTransaction || payload.signTransaction; if (transaction) {
return ( return (
<TransactionPending <TransactionPending
className={ className } className={ className }