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

Commit 4b732ebe authored by Jonathan Klee's avatar Jonathan Klee Committed by Nishant D
Browse files

Update as per review comment

parent 189540b2
Loading
Loading
Loading
Loading
Loading
+148 −148
Original line number Diff line number Diff line
@@ -137,10 +137,10 @@ class DataStoreModule @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
                }
            }
        }