fix: Navigate to orders on signin (#7415)

This commit is contained in:
Oli Juhl authored and GitHub committed 2024-05-23 10:11:25 +02:00
1 parent ccf335fcf4
commit b0209e1114
1 file changed
+1 -1
@@ -20,7 +20,7 @@ export const Login = () => {
const location = useLocation() const location = useLocation()
const navigate = useNavigate() const navigate = useNavigate()
const from = location.state?.from?.pathname || "/settings" const from = location.state?.from?.pathname || "/orders"
const form = useForm<z.infer<typeof LoginSchema>>({ const form = useForm<z.infer<typeof LoginSchema>>({
resolver: zodResolver(LoginSchema), resolver: zodResolver(LoginSchema),