diff --git a/presentation/src/main/java/org/gdsc/presentation/login/SplashActivity.kt b/presentation/src/main/java/org/gdsc/presentation/login/SplashActivity.kt index e63245ad..a34e3fb5 100644 --- a/presentation/src/main/java/org/gdsc/presentation/login/SplashActivity.kt +++ b/presentation/src/main/java/org/gdsc/presentation/login/SplashActivity.kt @@ -36,11 +36,11 @@ class SplashActivity : AppCompatActivity() { lifecycleScope.launch(Dispatchers.Main) { - val validateTokenJob = validateToken() + val accessible = validateToken() delay(DELAY_TIME) - if(validateTokenJob) + if(accessible) moveToMain() else moveToLogin()