Updated on 2026-08-14

This commit is contained in:
Tangem 2024-05-22 14:57:21 +01:00
commit 4ecb80a174
3 changed files with 3 additions and 3 deletions

View file

@ -161,7 +161,7 @@ private fun String.preserveDecimalSymbol(newValue: String, decimalSymbol: Char)
private fun String.preserveTrailingZeros(newValue: String, parsedDecimal: BigDecimal?, decimalSymbol: Char): String {
val trailingZeros = newValue.split(decimalSymbol).getOrNull(1)?.takeLastWhile { it == '0' }.orEmpty()
return when {
this.endsWith('0') -> this
this.endsWith('0') && parsedDecimal?.scale() != 0 -> this
parsedDecimal?.scale() == 0 && trailingZeros.isNotEmpty() -> "$this$decimalSymbol$trailingZeros"
else -> this.plus(trailingZeros)
}

View file

@ -807,7 +807,7 @@ internal class SendViewModel @Inject constructor(
}
uiState = sendNotificationFactory.dismissNotificationState(clazz)
feeReload()
updateNotifications()
}
override fun onNotificationCancel(clazz: Class<out SendNotification>) {

View file

@ -86,7 +86,7 @@ markdown = "0.7.2"
# endregion Other libraries
# region Tangem
tangemBlockchainSdk = "release-app_5.10-636"
tangemBlockchainSdk = "release-app_5.10-639"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "release-app_5.10-353"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^