Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f656320 authored by Jonathan Klee's avatar Jonathan Klee Committed by Nishant D
Browse files

Added suggested patch

parent f0d02714
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -120,10 +120,10 @@ class LoginDataStore @Inject constructor(
        return runBlocking {
            userType.first().run {
                val userStrings = User.values().map { it.name }
                if (this !in userStrings) {
                    User.UNAVAILABLE
                } else {
                if (this in userStrings) {
                    User.valueOf(this)
                } else {
                    User.UNAVAILABLE
                }
            }
        }