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

Commit cf79707a authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

pass blank authdata instead of null

parent 430bc57c
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ class DataStoreManager @Inject constructor() {

    fun getAuthData(): AuthData {
        val authDataJson = dataStoreModule.getAuthDataSync()
        return gson.fromJson(authDataJson, AuthData::class.java)
        return gson.fromJson(authDataJson, AuthData::class.java) ?: AuthData("", "")
    }

    fun getUserType(): User {