Skip to content

Commit

Permalink
refactor : 변수 제거 및 함수 인자 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
huiwoo-jo committed Mar 31, 2024
1 parent f676bf8 commit 4423435
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ class MainViewModel(private val mainRepository: MainRepository) : BaseViewModel(
val keyword = mainRepository.getUserTopic()
_myTopics.value = keyword

val token = Token(
when (val result = mainRepository.setUserToken(Token(
token = FCMToken.value.toString(),
department = myDepartment.value ?: "",
topics = myTopics.value ?: emptyList()
)

when (val result = mainRepository.setUserToken(token)) {
)) {
is NetworkResult.Success -> {
mainRepository.setIsFirstLaunch(false)
_isLoading.postValue(false)
Expand Down

0 comments on commit 4423435

Please sign in to comment.