Skip to content

Commit 7eca29f

Browse files
committed
fix: narrow LNURL pay error mapping
1 parent bade351 commit 7eca29f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Bitkit/Utilities/Lnurl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private extension LnurlHelper {
121121
static func mapLnurlPayInvoiceError(_ error: Error) -> Error {
122122
if let lnurlError = error as? LnurlError {
123123
switch lnurlError {
124-
case .InvalidAmount, .AmountMismatch, .MetadataMismatch:
124+
case .InvalidAmount:
125125
return LnurlPayInvoiceMismatchError()
126126
default:
127127
break

0 commit comments

Comments
 (0)