diff --git a/session-manager-android/src/main/java/com/web3auth/session_manager_android/SessionManager.kt b/session-manager-android/src/main/java/com/web3auth/session_manager_android/SessionManager.kt index ce66905..4be27c7 100644 --- a/session-manager-android/src/main/java/com/web3auth/session_manager_android/SessionManager.kt +++ b/session-manager-android/src/main/java/com/web3auth/session_manager_android/SessionManager.kt @@ -59,10 +59,8 @@ class SessionManager( init { KeyStoreManager.initializePreferences(context.applicationContext) initiateKeyStoreManager() - if (sessionId != null) { - if (sessionId.isNotEmpty()) { - this.sessionId = sessionId - } + if (sessionId != null && sessionId.isNotEmpty()) { + this.sessionId = sessionId } this.sessionTime = sessionTime this.allowedOrigin = allowedOrigin