fix: Navigate to orders on signin (#7415)
This commit is contained in:
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),
|
||||||
|
|||||||
Reference in new issue
Block a user