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