fix: currencies in receive dialog (#3646)
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -32,7 +32,7 @@ window.PageWallet = {
|
|||||||
amountMsat: null,
|
amountMsat: null,
|
||||||
minMax: [0, 2100000000000000],
|
minMax: [0, 2100000000000000],
|
||||||
lnurl: null,
|
lnurl: null,
|
||||||
units: ['sat', ...(this.currencies || [])],
|
units: [],
|
||||||
unit: 'sat',
|
unit: 'sat',
|
||||||
fiatProvider: '',
|
fiatProvider: '',
|
||||||
data: {
|
data: {
|
||||||
@@ -105,6 +105,12 @@ window.PageWallet = {
|
|||||||
this.receive.data.memo = null
|
this.receive.data.memo = null
|
||||||
this.receive.data.internalMemo = null
|
this.receive.data.internalMemo = null
|
||||||
this.receive.data.payment_hash = 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.receive.unit = this.g.isFiatPriority
|
||||||
? this.g.wallet.currency || 'sat'
|
? this.g.wallet.currency || 'sat'
|
||||||
: 'sat'
|
: 'sat'
|
||||||
|
|||||||
Reference in New Issue
Block a user