Skip to content

Commit

Permalink
fix: Always allow avatar changeing [WPB-2247] (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
borichellow authored Aug 29, 2023
1 parent 8e8d91f commit 2ae53a2
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Alignment.Companion.CenterHorizontally
import androidx.compose.ui.Modifier
Expand Down Expand Up @@ -94,12 +93,10 @@ fun UserProfileInfo(
connectionState = connection,
membership = membership
),
clickable = remember(editableState) {
Clickable(
enabled = editableState is EditableState.IsEditable,
clickBlockParams = ClickBlockParams(blockWhenSyncing = true, blockWhenConnecting = true),
) { onUserProfileClick?.invoke() }
}
clickable = Clickable(
enabled = true,
clickBlockParams = ClickBlockParams(blockWhenSyncing = true, blockWhenConnecting = true),
) { onUserProfileClick?.invoke() }
)
if (isLoading) {
Box(
Expand Down

0 comments on commit 2ae53a2

Please sign in to comment.