Updated on 2026-08-14

This commit is contained in:
Tangem 2024-04-23 17:28:10 +05:00
parent 37a224169c
commit 585a213d98
2 changed files with 1 additions and 8 deletions

View file

@ -104,13 +104,6 @@ fun SimpleTextField(
}
}
// private fun TextRange.getValueRange(oldValue: String, newValue: String) = when {
// newValue.isEmpty() -> TextRange.Zero
// newValue.length - oldValue.length > 1 -> TextRange(newValue.length, newValue.length)
// newValue.length - oldValue.length > 0 -> TextRange(this.start.inc(), this.end.inc())
// else -> this
// }
@Composable
private fun SimpleTextPlaceholder(
placeholder: TextReference?,

View file

@ -53,7 +53,7 @@ internal class SendAmountFieldConverter(
cryptoAmount = cryptoAmount,
fiatAmount = getAppCurrencyAmount(fiatDecimal, appCurrencyProvider()),
isError = false,
error = TextReference.Res(R.string.swapping_insufficient_funds),
error = TextReference.Res(R.string.send_validation_amount_exceeds_balance),
isFiatUnavailable = fiatRate == null,
isValuePasted = false,
onValuePastedTriggerDismiss = clickIntents::onAmountPasteTriggerDismiss,