Skip to content

Commit

Permalink
fix: check login status before loading is finished
Browse files Browse the repository at this point in the history
  • Loading branch information
itszechs committed Jun 14, 2023
1 parent d9f63ae commit 2ee599b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class MainViewModel @Inject constructor(
viewModelScope.launch {
getTheme()
val status = getLoginStatus()
_hasLoggedIn.value = status
delay(250L)
_isLoading.value = false
_hasLoggedIn.value = status
}
getLatestRelease() // check for update
}
Expand Down

0 comments on commit 2ee599b

Please sign in to comment.