mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 17:57:39 +02:00
Fixing mutable object to recalculate zap amount.
This commit is contained in:
@@ -414,7 +414,7 @@ fun ZapReaction(
|
|||||||
|
|
||||||
var zapAmount by remember { mutableStateOf<BigDecimal?>(null) }
|
var zapAmount by remember { mutableStateOf<BigDecimal?>(null) }
|
||||||
|
|
||||||
LaunchedEffect(key1 = zappedNote) {
|
LaunchedEffect(key1 = zapsState) {
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
zapAmount = zappedNote?.zappedAmount()
|
zapAmount = zappedNote?.zappedAmount()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user