common: use the boolean operator

This commit is contained in:
Harsh Shandilya 2022-02-14 17:32:45 +05:30
parent 943ee382d8
commit adbda57652
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -62,7 +62,7 @@ fun LobstersCard(
isSaved = localSavedState, isSaved = localSavedState,
modifier = modifier =
Modifier.clickable { Modifier.clickable {
localSavedState = localSavedState.not() localSavedState = !localSavedState
postActions.toggleSave(post) postActions.toggleSave(post)
}, },
) )