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

Loading…
Cancel
Save