mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix send fiat amount calculation for ln (#3059)
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user