Fixes a bug on clicking the user profile but loading the wrong one

This commit is contained in:
Vitor Pamplona
2024-07-15 15:32:59 -04:00
parent 97d0cf56a7
commit edb834db38

View File

@@ -152,7 +152,7 @@ fun ClickableUserPicture(
) { ) {
// BaseUser is the same reference as accountState.user // BaseUser is the same reference as accountState.user
val myModifier = val myModifier =
remember { remember(baseUser) {
if (onClick != null && onLongClick != null) { if (onClick != null && onLongClick != null) {
Modifier Modifier
.size(size) .size(size)