diff --git a/apps/mobile/src/screens/(headless)/login.tsx b/apps/mobile/src/screens/(headless)/login.tsx
index eb991d92e..1b5f513ab 100644
--- a/apps/mobile/src/screens/(headless)/login.tsx
+++ b/apps/mobile/src/screens/(headless)/login.tsx
@@ -1,4 +1,5 @@
-import { Redirect } from "expo-router"
+import { Redirect, router } from "expo-router"
+import { Text, TouchableOpacity } from "react-native"
import { Login } from "@/src/modules/login"
import { useWhoami } from "@/src/store/user/hooks"
@@ -6,9 +7,29 @@ import { useWhoami } from "@/src/store/user/hooks"
export default function LoginPage() {
const whoami = useWhoami()
- if (whoami?.id && !__DEV__) {
- return
+ if (!whoami?.id) {
+ // Not logged in
+ return
+ }
+ // For development purposes, we don't want to redirect to the home page automatically
+ if (__DEV__) {
+ return (
+ <>
+
+ {
+ router.replace("/")
+ }}
+ >
+
+ Redirect to Home (DEV)
+
+
+ >
+ )
}
- return
+ return
}