fix: currencies in receive dialog (#3646)

This commit is contained in:
dni ⚡
2025-12-09 10:05:32 +01:00
committed by GitHub
parent 07dd4fc685
commit 77a5d7fe50
2 changed files with 8 additions and 2 deletions
File diff suppressed because one or more lines are too long
+7 -1
View File
@@ -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'