Browse Source

Merge pull request #382 from LN-Zap/fix/submit-channel-form

fix(SubmitChannelForm): fix conditional so form can submit
renovate/lint-staged-8.x
JimmyMow 7 years ago
committed by GitHub
parent
commit
e6019205a5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/components/Contacts/SubmitChannelForm.js

2
app/components/Contacts/SubmitChannelForm.js

@ -38,7 +38,7 @@ class SubmitChannelForm extends React.Component {
const formSubmitted = () => {
// dont submit to LND if they havent set channel capacity amount
if (contactCapacity > 0) { console.log('hello?'); return }
if (contactCapacity <= 0) { return }
// submit the channel to LND
openChannel({ pubkey: node.pub_key, host: node.addresses[0].addr, local_amt: contactCapacity })

Loading…
Cancel
Save