Addressing tiny grumbles
This commit is contained in:
parent
8686339b0c
commit
1a6ee533ed
@ -72,9 +72,8 @@ export default class SignerMiddleware {
|
||||
};
|
||||
|
||||
// Sign request in-browser
|
||||
if (wallet && (payload.sendTransaction || payload.signTransaction)) {
|
||||
const transaction = payload.sendTransaction || payload.signTransaction;
|
||||
|
||||
if (wallet && transaction) {
|
||||
(transaction.nonce.isZero()
|
||||
? this._api.parity.nextNonce(transaction.from)
|
||||
: Promise.resolve(transaction.nonce)
|
||||
|
@ -59,9 +59,8 @@ export default class RequestFinished extends Component {
|
||||
);
|
||||
}
|
||||
|
||||
if (payload.sendTransaction || payload.signTransaction) {
|
||||
const transaction = payload.sendTransaction || payload.signTransaction;
|
||||
|
||||
if (transaction) {
|
||||
return (
|
||||
<TransactionFinished
|
||||
className={ className }
|
||||
|
@ -65,9 +65,8 @@ export default class RequestPending extends Component {
|
||||
);
|
||||
}
|
||||
|
||||
if (payload.sendTransaction || payload.signTransaction) {
|
||||
const transaction = payload.sendTransaction || payload.signTransaction;
|
||||
|
||||
if (transaction) {
|
||||
return (
|
||||
<TransactionPending
|
||||
className={ className }
|
||||
|
Loading…
Reference in New Issue
Block a user