Showing zap amounts with correct scale.

pull/152/head v0.17.11
Vitor Pamplona 2023-02-23 21:47:12 -05:00
rodzic 7acb735151
commit 2e1b141e38
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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)
}
}
}