Skip to content

Commit

Permalink
Ignore "(null)" bolt11 strings
Browse files Browse the repository at this point in the history
  • Loading branch information
shesek committed Aug 10, 2020
1 parent ff92b6d commit 3eda345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const parsePayment = p => ({
})

export const parseBolt11 = (cached => p => {
if (!p.bolt11) return {}
if (!p.bolt11 || p.bolt11 == '(null)') return {}
if (cached[p.payment_hash]) return cached[p.payment_hash]

const decoded = bolt11.decode(p.bolt11)
Expand Down

0 comments on commit 3eda345

Please sign in to comment.