Removes redundant authentication check

Removes a redundant check for "There is no account that uses
those credentials" as it's already covered by other checks,
simplifying the logic for handling invalid credentials and
preventing unnecessary code execution.
This commit is contained in:
Hafiz 2025-07-03 15:12:06 -05:00
parent 6d076888a1
commit f7f8bb841c

View file

@ -178,8 +178,7 @@ class ApiClientImpl(
|| errField.equals("invalidCredentials", ignoreCase = true)
|| msgField.contains("invalidCredentials", ignoreCase = true)
|| msgField.contains("Missing authentication headers", ignoreCase = true)
|| msgField.contains("There is no account that uses those credentials", ignoreCase = true)
if (shouldLogout) {
HabiticaBaseApplication.logout(context)
}