Better error handling for tips
This commit is contained in:
parent
5b6ff06a7e
commit
d92b7750e3
1 changed files with 2 additions and 0 deletions
|
|
@ -133,8 +133,10 @@ const _getTipData = (invoiceHash, tries = 0) =>
|
||||||
|
|
||||||
if (tip) {
|
if (tip) {
|
||||||
resolve(tip)
|
resolve(tip)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reject(new Error('Malformed data'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue