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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -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'