Code cleanup
This commit is contained in:
parent
c828364385
commit
fd7f6f2e6e
|
@ -8,10 +8,11 @@ object ObserveFiatCurrencyResultFixture {
|
|||
const val IS_LOADING: Boolean = true
|
||||
const val IS_STALE: Boolean = false
|
||||
const val IS_REFRESH_ENABLED: Boolean = false
|
||||
val CURRENCY_CONVERSION: FiatCurrencyConversion = FiatCurrencyConversion(
|
||||
timestamp = Clock.System.now(),
|
||||
priceOfZec = 25.0
|
||||
)
|
||||
val CURRENCY_CONVERSION: FiatCurrencyConversion =
|
||||
FiatCurrencyConversion(
|
||||
timestamp = Clock.System.now(),
|
||||
priceOfZec = 25.0
|
||||
)
|
||||
|
||||
fun new(
|
||||
isLoading: Boolean = IS_LOADING,
|
||||
|
|
|
@ -162,7 +162,9 @@ internal fun WrapSend(
|
|||
if (amountState.value.isNotBlank() || amountState.fiatValue.isBlank()) {
|
||||
AmountState.newFromZec(
|
||||
context = context,
|
||||
isTransparentOrTextRecipient = recipientAddressState.type?.let { it == AddressType.Transparent } ?: false,
|
||||
isTransparentOrTextRecipient =
|
||||
recipientAddressState.type
|
||||
?.let { it == AddressType.Transparent } ?: false,
|
||||
monetarySeparators = monetarySeparators,
|
||||
value = amountState.value,
|
||||
fiatValue = amountState.fiatValue,
|
||||
|
@ -171,7 +173,9 @@ internal fun WrapSend(
|
|||
} else {
|
||||
AmountState.newFromFiat(
|
||||
context = context,
|
||||
isTransparentOrTextRecipient = recipientAddressState.type?.let { it == AddressType.Transparent } ?: false,
|
||||
isTransparentOrTextRecipient =
|
||||
recipientAddressState.type
|
||||
?.let { it == AddressType.Transparent } ?: false,
|
||||
monetarySeparators = monetarySeparators,
|
||||
value = amountState.value,
|
||||
fiatValue = amountState.fiatValue,
|
||||
|
|
Loading…
Reference in New Issue