diff --git a/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt b/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt index c2be944..117a8bd 100644 --- a/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt +++ b/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt @@ -117,8 +117,7 @@ class MainActivity : ComponentActivity() { "Something went wrong please try again", Toast.LENGTH_SHORT, ).show() - } else { - val token = res?.accessToken + } else{ res?.accessToken?.let { insertToken(it) } } }