From 0936df98515ff1d0191150d528c4ec9aa2b13949 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 20 May 2024 13:19:04 -0400 Subject: [PATCH] Fixes sat division and the state changing text. --- .../ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt index 7c133fb3f..dfd3e96fa 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt @@ -282,7 +282,9 @@ fun FeedDVM( ) { val status = latestStatus.status() ?: return - var currentStatus = status.description + var currentStatus by remember { + mutableStateOf(status.description) + } Column( Modifier @@ -370,7 +372,7 @@ fun FeedDVM( } if (amountInInvoice != null) { - Text(text = "Pay " + (amountInInvoice / 1000).toString() + " sats to the DVM") + Text(text = "Pay $amountInInvoice sats to the DVM") } else { Text(text = "Pay Invoice from the DVM") }