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:
co-authored by
dni ⚡
Vlad Stan
parent
4b6f43d274
commit
2885e71be2
+1
-1
File diff suppressed because one or more lines are too long
@@ -223,6 +223,12 @@ window.PageWallet = {
|
|||||||
if (data.tag === 'payRequest') {
|
if (data.tag === 'payRequest') {
|
||||||
this.parse.lnurlpay = Object.freeze(data)
|
this.parse.lnurlpay = Object.freeze(data)
|
||||||
this.parse.data.amount = data.minSendable / 1000
|
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') {
|
} else if (data.tag === 'login') {
|
||||||
this.parse.lnurlauth = Object.freeze(data)
|
this.parse.lnurlauth = Object.freeze(data)
|
||||||
} else if (data.tag === 'withdrawRequest') {
|
} else if (data.tag === 'withdrawRequest') {
|
||||||
|
|||||||
Reference in New Issue
Block a user