fix: populate unit selector when opening send/pay dialog (#3953)

Co-authored-by: dni  <office@dnilabs.com>
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
axelhamburch
2026-06-18 11:50:27 +03:00
committed by GitHub
co-authored by dni ⚡ Vlad Stan
parent 4b6f43d274
commit 2885e71be2
2 changed files with 7 additions and 1 deletions
File diff suppressed because one or more lines are too long
+6
View File
@@ -223,6 +223,12 @@ window.PageWallet = {
if (data.tag === 'payRequest') {
this.parse.lnurlpay = Object.freeze(data)
this.parse.data.amount = data.minSendable / 1000
this.receive.units = [
'sats',
...(this.g.allowedCurrencies.length > 0
? this.g.allowedCurrencies
: this.g.currencies)
]
} else if (data.tag === 'login') {
this.parse.lnurlauth = Object.freeze(data)
} else if (data.tag === 'withdrawRequest') {