mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
fix: enter Lightning invoice amounts in sats (#3525)
LN receive remapped btcln to BTC, so the default "sats (LN)" display mode never applied and the amount field stayed in BTC. Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Konstantin Ullrich <konstantin@cakewallet.com>
This commit is contained in:
co-authored by
Cursor
Konstantin Ullrich
parent
2d8d068418
commit
fdb8267583
@@ -86,7 +86,12 @@ abstract class WalletAddressListViewModelBase extends WalletChangeListenerViewMo
|
||||
);
|
||||
|
||||
void setTokenCurrency(Currency curr) {
|
||||
if (curr == wallet.currency || curr == CryptoCurrency.btcln) {
|
||||
if (curr == CryptoCurrency.btcln) {
|
||||
tokenCurrency = null;
|
||||
selectedCurrency = CryptoCurrency.btcln;
|
||||
return;
|
||||
}
|
||||
if (curr == wallet.currency) {
|
||||
tokenCurrency = null;
|
||||
selectedCurrency = wallet.currency;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user