Fixes crash when more than 1 status

This commit is contained in:
Vitor Pamplona
2023-08-27 15:52:35 -04:00
parent b569c67d3b
commit da1d4018cf

View File

@@ -161,7 +161,7 @@ fun RotateStatuses(
LaunchedEffect(Unit) {
while (true) {
delay(10.seconds)
indexToDisplay = ((indexToDisplay + 1) % (statuses.size + 1))
indexToDisplay = ((indexToDisplay + 1) % (statuses.size))
}
}
}