Better error handling for tips

This commit is contained in:
emad-salah 2020-10-17 15:15:36 +01:00
parent 5b6ff06a7e
commit d92b7750e3

View file

@ -133,8 +133,10 @@ const _getTipData = (invoiceHash, tries = 0) =>
if (tip) {
resolve(tip)
return
}
reject(new Error('Malformed data'))
return
}