refactor(common): pass Modifier to UserProfileInternal

This commit is contained in:
Harsh Shandilya 2022-10-03 11:33:47 +05:30
parent 999f2dfb01
commit 46bfafd681
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -50,7 +50,7 @@ fun UserProfile(
}
when (user) {
is Success<*> -> {
UserProfileInternal((user as Success<User>).data)
UserProfileInternal(user = (user as Success<User>).data, modifier = modifier)
}
is Error -> {
val error = user as Error