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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 }) |
|
|
|