mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
CW-1017: Monero minor enhancements (#2347)
* feat: add max decimal handling for crypto amounts and test coverage * fix: correct decimal point handling in `withMaxDecimals` and update related test * fix: ensure amount formatting aligns with selected currency decimals in ReceivePage * fix: ensure amount controller syncs with ViewModel in AddressPage and ReceivePage * feat: add support for currency decimals and streamline amount handling logic * fix: ensure crypto and fiat amounts sync correctly in Send ViewModel
This commit is contained in:
@@ -250,7 +250,7 @@ abstract class OutputBase with Store {
|
||||
sendAll = false;
|
||||
}
|
||||
|
||||
cryptoAmount = amount.replaceAll(',', '.');
|
||||
cryptoAmount = amount;
|
||||
_updateFiatAmount();
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,9 @@ abstract class SendTemplateViewModelBase with Store {
|
||||
@computed
|
||||
String get fiatCurrency => _settingsStore.fiatCurrency.title;
|
||||
|
||||
@computed
|
||||
int get fiatCurrencyDecimals => _settingsStore.fiatCurrency.decimals;
|
||||
|
||||
@computed
|
||||
ObservableList<Template> get templates => _sendTemplateStore.templates;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user