Skip to content

Commit

Permalink
[feat] #34 it 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jihyunniiii committed Jun 7, 2024
1 parent cb026e8 commit 0e6f898
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import androidx.lifecycle.flowWithLifecycle
import androidx.lifecycle.lifecycleScope
import com.sopt.now.coreui.base.BindingActivity
import com.sopt.now.coreui.util.context.showToast
import com.sopt.now.coreui.util.context.stringOf
import com.sopt.now.coreui.util.view.UiState
import com.sopt.now.feature.databinding.ActivitySignInBinding
import com.sopt.now.feature.ui.main.MainActivity
Expand Down Expand Up @@ -55,7 +54,9 @@ class SignInActivity :
signInViewModel.signInState.flowWithLifecycle(lifecycle).onEach { uiState ->
when (uiState) {
is UiState.Success -> {
uiState.data?.let { signInViewModel.setUserId(userId = it) }
uiState.data?.let { userId ->
signInViewModel.setUserId(userId = userId)
}
}

is UiState.Error -> showToast(uiState.message.orEmpty())
Expand Down

0 comments on commit 0e6f898

Please sign in to comment.