A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix(mobile): fix default address not correctly stored in settings
MohamedBassema2203196ff33
diff --git a/apps/mobile/app/signin.tsx b/apps/mobile/app/signin.tsxindex 3dc41a0c..6a554f89 100644--- a/apps/mobile/app/signin.tsx+++ b/apps/mobile/app/signin.tsx@@ -30,7 +30,7 @@ export default function Signin() {const [loginType, setLoginType] = useState<LoginType>(LoginType.Password);const [isEditingServerAddress, setIsEditingServerAddress] = useState(false);const [tempServerAddress, setTempServerAddress] = useState(- "https://cloud.karakeep.app",+ settings.address ?? "https://cloud.karakeep.app",);const [isCustomHeadersModalVisible, setIsCustomHeadersModalVisible] =useState(false);diff --git a/apps/mobile/lib/settings.ts b/apps/mobile/lib/settings.tsindex aa931b9e..40a33976 100644--- a/apps/mobile/lib/settings.ts+++ b/apps/mobile/lib/settings.ts@@ -7,7 +7,7 @@ const SETTING_NAME = "settings";const zSettingsSchema = z.object({apiKey: z.string().optional(),apiKeyId: z.string().optional(),- address: z.string(),+ address: z.string().optional().default("https://cloud.karakeep.app"),imageQuality: z.number().optional().default(0.2),theme: z.enum(["light", "dark", "system"]).optional().default("system"),defaultBookmarkView: z@@ -30,7 +30,7 @@ const useSettings = create<AppSettingsState>((set, get) => ({settings: {isLoading: true,settings: {- address: "",+ address: "https://cloud.karakeep.app",imageQuality: 0.2,theme: "system",defaultBookmarkView: "reader",