fix login redir

This commit is contained in:
raymondz
2021-11-19 17:16:20 -05:00
parent 7a3806b64b
commit 8fb9748bb6

View File

@@ -23,7 +23,7 @@ export default function LoginPage(props: {}) {
const handleLogin = useCallback((value: string) => {
const _ = Buffer.from(value, "hex") // just make sure it's a valid hex string
localStorage.setItem(LOCAL_STORAGE_SECRET_KEY, value)
router.push("/backup")
router.push("/")
}, [])
return (