From 2e1b141e38a88c88eacfea88a1e980eaa3b8ee74 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 23 Feb 2023 21:47:12 -0500 Subject: [PATCH] Showing zap amounts with correct scale. --- .../java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt index e01a422cf..6a9a85d35 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt @@ -447,7 +447,7 @@ private fun ZapAmountChoicePopup(baseNote: Note, accountViewModel: AccountViewMo backgroundColor = MaterialTheme.colors.primary ) ) { - Text("⚡ ${showAmount(amountInSats.toBigDecimal())}", + Text("⚡ ${showAmount(amountInSats.toBigDecimal().setScale(1))}", color = Color.White, textAlign = TextAlign.Center, modifier = Modifier.combinedClickable( @@ -572,7 +572,7 @@ fun UpdateZapAmountDialog(onClose: () -> Unit, account: Account) { postViewModel.removeAmount(amountInSats) } ) { - Text("⚡ ${showAmount(amountInSats.toBigDecimal())} ✖", color = Color.White, textAlign = TextAlign.Center) + Text("⚡ ${showAmount(amountInSats.toBigDecimal().setScale(1))} ✖", color = Color.White, textAlign = TextAlign.Center) } } }