Skip to content

Commit

Permalink
fix: Add missing HiltViewModel annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
kongwoojin committed Mar 30, 2024
1 parent 49449fc commit 125ecb8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ package com.kongjak.koreatechboard.ui.main
import com.kongjak.koreatechboard.model.BottomNavigationItem
import com.kongjak.koreatechboard.ui.base.BaseViewModel
import com.kongjak.koreatechboard.util.routes.Department
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

class MainViewModel : BaseViewModel<MainState, MainEvent>(MainState()) {
@HiltViewModel
class MainViewModel @Inject constructor() : BaseViewModel<MainState, MainEvent>(MainState()) {
override fun reduce(oldState: MainState, event: MainEvent) {
when (event) {
is MainEvent.SetDefaultScreen -> setState(oldState.copy(defaultScreen = event.defaultScreen))
Expand Down

0 comments on commit 125ecb8

Please sign in to comment.