diff options
| author | MohamedBassem <me@mbassem.com> | 2025-11-08 17:18:55 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2025-11-08 18:20:22 +0000 |
| commit | a2203196ff3353a6f7efaac5df25844880807baf (patch) | |
| tree | 62272773af9e94017796170e38793418a8091131 /apps | |
| parent | ec621bf55aefda6649ce49d7ece6065ab2c54368 (diff) | |
| download | karakeep-a2203196ff3353a6f7efaac5df25844880807baf.tar.zst | |
fix(mobile): fix default address not correctly stored in settings
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/mobile/app/signin.tsx | 2 | ||||
| -rw-r--r-- | apps/mobile/lib/settings.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/mobile/app/signin.tsx b/apps/mobile/app/signin.tsx index 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.ts index 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", |
