diff --git a/apps/mobile/src/morph/hono.ts b/apps/mobile/src/morph/hono.ts index fc9216a69..48fd5455e 100644 --- a/apps/mobile/src/morph/hono.ts +++ b/apps/mobile/src/morph/hono.ts @@ -6,7 +6,7 @@ import type { EntryModel } from "../store/entry/types" import type { FeedModel } from "../store/feed/types" import type { ListModel } from "../store/list/store" import type { SubscriptionModel } from "../store/subscription/store" -import type { UserModel } from "../store/user/store" +import type { MeModel } from "../store/user/store" import type { HonoApiClient } from "./types" class Morph { @@ -202,7 +202,7 @@ class Morph { } } - toUser(data: HonoApiClient.User_Get, isMe?: boolean): UserModel { + toUser(data: HonoApiClient.User_Get, isMe?: boolean): MeModel { return { id: data.id, name: data.name, @@ -211,6 +211,7 @@ class Morph { image: data.image, isMe: isMe ? 1 : 0, emailVerified: data.emailVerified, + twoFactorEnabled: data.twoFactorEnabled, } } } diff --git a/apps/mobile/src/store/user/store.ts b/apps/mobile/src/store/user/store.ts index 5b5d1081c..e8a7ed3ba 100644 --- a/apps/mobile/src/store/user/store.ts +++ b/apps/mobile/src/store/user/store.ts @@ -15,7 +15,7 @@ export type UserModel = UserSchema export type MeModel = UserModel & { emailVerified?: boolean - twoFactorEnabled?: boolean + twoFactorEnabled?: boolean | null } type UserStore = { users: Record