Skip to content

Commit

Permalink
fix: Navigate to orders on signin
Browse files Browse the repository at this point in the history
  • Loading branch information
olivermrbl committed May 23, 2024
1 parent 9a10adf commit 21dabfb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const Login = () => {
const location = useLocation()
const navigate = useNavigate()

const from = location.state?.from?.pathname || "/settings"
const from = location.state?.from?.pathname || "/orders"

const form = useForm<z.infer<typeof LoginSchema>>({
resolver: zodResolver(LoginSchema),
Expand Down

0 comments on commit 21dabfb

Please sign in to comment.