fix send fiat amount calculation for ln (#3059)

This commit is contained in:
malik1004x
2026-03-13 01:59:07 +01:00
committed by GitHub
parent 79a0115a7a
commit 536f53f1fd
+4 -2
View File
@@ -204,9 +204,11 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
if (pendingTransaction == null) return '0.00';
try {
final selectedCurrency = selectedCryptoCurrency == CryptoCurrency.btcln
? CryptoCurrency.btc
: selectedCryptoCurrency;
var currency = _fiatConversationStore.prices.keys
.firstWhere((k) => k.titleAndTagEqual(selectedCryptoCurrency));
if (currency == CryptoCurrency.btcln) currency = CryptoCurrency.btc;
.firstWhere((k) => k.titleAndTagEqual(selectedCurrency));
final fiat = calculateFiatAmount(
price: _fiatConversationStore.prices[currency],