Currency conversion floating point hotfix
This commit is contained in:
parent
bdf105e356
commit
7b808c53c8
|
@ -131,7 +131,7 @@ ZCASH_EMULATOR_WTF_API_KEY=
|
|||
# Optional absolute path to a Zcash SDK checkout.
|
||||
# When blank, it pulls the SDK from Maven.
|
||||
# When set, it uses the path for a Gradle included build. Path can either be absolute or relative to the root of this app's Gradle project.
|
||||
SDK_INCLUDED_BUILD_PATH=
|
||||
SDK_INCLUDED_BUILD_PATH=/Users/milancerovsky/Developer/zcash/zcash-android-wallet-sdk
|
||||
|
||||
# When blank, it pulls the BIP-39 library from Maven.
|
||||
# When set, it uses the path for a Gradle included build. Path can either be absolute or relative to the root of this app's Gradle project.
|
||||
|
|
|
@ -158,15 +158,11 @@ internal fun createExchangeRateText(
|
|||
if (isHideBalances) {
|
||||
"${currencySymbol}${hiddenBalancePlaceholder.getValue()}"
|
||||
} else if (state.currencyConversion != null) {
|
||||
val value =
|
||||
zatoshi.toFiatString(
|
||||
currencyConversion = state.currencyConversion,
|
||||
locale = Locale.current.toKotlinLocale(),
|
||||
monetarySeparators = MonetarySeparators.current(java.util.Locale.getDefault()),
|
||||
includeSymbols = false
|
||||
)
|
||||
|
||||
"$currencySymbol$value"
|
||||
zatoshi.toFiatString(
|
||||
currencyConversion = state.currencyConversion,
|
||||
locale = Locale.current.toKotlinLocale(),
|
||||
monetarySeparators = MonetarySeparators.current(java.util.Locale.getDefault()),
|
||||
)
|
||||
} else {
|
||||
currencySymbol
|
||||
}
|
||||
|
|
|
@ -69,8 +69,7 @@ sealed interface AmountState {
|
|||
currencyConversion = currencyConversion,
|
||||
locale = Locale.current.toKotlinLocale(),
|
||||
monetarySeparators = MonetarySeparators.current(java.util.Locale.getDefault()),
|
||||
includeSymbols = false
|
||||
)
|
||||
).replace(currencyConversion.fiatCurrency.symbol, "")
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue