diff --git a/uma/uma.go b/uma/uma.go index 97d89f2..ccea7e7 100644 --- a/uma/uma.go +++ b/uma/uma.go @@ -411,9 +411,9 @@ func GetLnurlpResponse( // Ensure currencies are correctly serialized: if umaVersion != nil { umaVersionParsed, err := ParseVersion(*umaVersion) - if err != nil && umaVersionParsed != nil && umaVersionParsed.Major == 0 { + if err == nil && umaVersionParsed != nil { for i := range *currencyOptions { - (*currencyOptions)[i].UmaMajorVersion = 0 + (*currencyOptions)[i].UmaMajorVersion = umaVersionParsed.Major } } }