Browse Source

fix(lint): fix lint errors

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
42344065f4
  1. 6
      app/components/Onboarding/Onboarding.js
  2. 10
      app/lnd/methods/index.js

6
app/components/Onboarding/Onboarding.js

@ -52,7 +52,11 @@ const Onboarding = ({
return ( return (
<FormContainer <FormContainer
title='How do you want to connect to the Lightning Network?' title='How do you want to connect to the Lightning Network?'
description='By default Zap will spin up a node for you and handle all the nerdy stuff in the background. However you can also setup a custom node connection and use Zap to control a remote node if you desire (for advanced users).' description='
By default Zap will spin up a node for you and handle all the nerdy stuff
in the background. However you can also setup a custom node connection and
use Zap to control a remote node if you desire (for advanced users).
'
back={null} back={null}
next={() => changeStep(connectionType === 'local' ? 1 : 0.2)} next={() => changeStep(connectionType === 'local' ? 1 : 0.2)}
> >

10
app/lnd/methods/index.js

@ -128,7 +128,7 @@ export default function (lnd, event, msg, data) {
.then(newinvoice => .then(newinvoice =>
invoicesController invoicesController
.getInvoice(lnd, { pay_req: newinvoice.payment_request }) .getInvoice(lnd, { pay_req: newinvoice.payment_request })
.then(decodedInvoice => { .then(decodedInvoice =>
event.sender.send( event.sender.send(
'createdInvoice', 'createdInvoice',
Object.assign(decodedInvoice, { Object.assign(decodedInvoice, {
@ -138,13 +138,11 @@ export default function (lnd, event, msg, data) {
payment_request: newinvoice.payment_request, payment_request: newinvoice.payment_request,
creation_date: Date.now() / 1000 creation_date: Date.now() / 1000
}) })
) ))
}) .catch((error) => {
.catch(error => {
console.log('decodedInvoice error: ', error) console.log('decodedInvoice error: ', error)
event.sender.send('invoiceFailed', { error: error.toString() }) event.sender.send('invoiceFailed', { error: error.toString() })
}) }))
)
.catch((error) => { .catch((error) => {
console.log('addInvoice error: ', error) console.log('addInvoice error: ', error)
event.sender.send('invoiceFailed', { error: error.toString() }) event.sender.send('invoiceFailed', { error: error.toString() })

Loading…
Cancel
Save