fix: prevent switching to same screen again

This commit is contained in:
Canny 2022-11-27 16:56:29 +03:00
parent 9afe97f47b
commit 7ab481ea0b
No known key found for this signature in database
GPG Key ID: 395CCB0AA979F27B

View File

@ -51,7 +51,11 @@ fun MainDashboardScreen(
)
},
label = { Text(stringResource(destination.label)) },
onClick = { onNavChanged(destination) }
onClick = {
if (destination != currentDestination) {
onNavChanged(destination)
}
}
)
}
}