fix send fiat amount calculation for ln (#3059)
malik1004x committed
Mar 13, 2026 at 01:59 UTC
536f53f1fd6df0e9ac11fcc1da891899506ef376
1 file changed
+4
-2
lib/view_model/send/send_view_model.dart
+4
-2
@@ -204,9 +204,11 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
204
if (pendingTransaction == null) return '0.00';
205
206
try {
207
+ final selectedCurrency = selectedCryptoCurrency == CryptoCurrency.btcln
208
+ ? CryptoCurrency.btc
209
+ : selectedCryptoCurrency;
210
var currency = _fiatConversationStore.prices.keys
208
- .firstWhere((k) => k.titleAndTagEqual(selectedCryptoCurrency));
209
- if (currency == CryptoCurrency.btcln) currency = CryptoCurrency.btc;
211
+ .firstWhere((k) => k.titleAndTagEqual(selectedCurrency));
212
213
final fiat = calculateFiatAmount(
214
price: _fiatConversationStore.prices[currency],