fix: currencies in receive dialog (#3646)
This commit is contained in:
parent
07dd4fc685
commit
77a5d7fe50
2 changed files with 8 additions and 2 deletions
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -32,7 +32,7 @@ window.PageWallet = {
|
|||
amountMsat: null,
|
||||
minMax: [0, 2100000000000000],
|
||||
lnurl: null,
|
||||
units: ['sat', ...(this.currencies || [])],
|
||||
units: [],
|
||||
unit: 'sat',
|
||||
fiatProvider: '',
|
||||
data: {
|
||||
|
|
@ -105,6 +105,12 @@ window.PageWallet = {
|
|||
this.receive.data.memo = null
|
||||
this.receive.data.internalMemo = null
|
||||
this.receive.data.payment_hash = null
|
||||
this.receive.units = [
|
||||
'sat',
|
||||
...(this.g.allowedCurrencies.length > 0
|
||||
? this.g.allowedCurrencies
|
||||
: this.g.currencies)
|
||||
]
|
||||
this.receive.unit = this.g.isFiatPriority
|
||||
? this.g.wallet.currency || 'sat'
|
||||
: 'sat'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue