Skip to content

Commit

Permalink
Fix getMemo for invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
ariel10aguero committed Nov 3, 2023
1 parent 0f59e07 commit 4ed1e08
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,9 @@ class Bolt11(
}

fun getMemo(): String {
if (tags.size > 1) {
(tags[1] as TaggedField.Description)?.let { descriptionTag ->
return descriptionTag.description
tags.forEach { taggedField ->
if (taggedField is TaggedField.Description) {
return taggedField.description
}
}
return "-"
Expand Down

0 comments on commit 4ed1e08

Please sign in to comment.