refactor(scanner): finished login stuff for current routes

This commit is contained in:
2026-05-06 12:09:47 -05:00
parent a38e2e0339
commit 12412536d1
9 changed files with 91 additions and 46 deletions

View File

@@ -15,9 +15,11 @@ export default function TabsLayout() {
const isUnlocked = useMobileAuthStore((s) => s.isUnlocked);
const port = parseInt(serverPort || "0", 10) >= 50000;
if (!user || (!isUnlocked && !port)) {
return <Redirect href="/login" />;
console.log(port);
if (!port) {
if (!user || !isUnlocked) {
return <Redirect href="/login" />;
}
}
const isNormalScanner = parseInt(serverPort || "0", 10) >= 50000;