Skip to content
Snippets Groups Projects
Commit 1a6ee533 authored by Tomasz Drwięga's avatar Tomasz Drwięga
Browse files

Addressing tiny grumbles

parent 8686339b
Branches
Tags
No related merge requests found
...@@ -72,9 +72,8 @@ export default class SignerMiddleware { ...@@ -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)
......
...@@ -59,9 +59,8 @@ export default class RequestFinished extends Component { ...@@ -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 }
......
...@@ -65,9 +65,8 @@ export default class RequestPending extends Component { ...@@ -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 }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment