Skip to content

Commit

Permalink
fix: minor import bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
bencodes07 committed Sep 22, 2024
1 parent bde0c7a commit 98ce50f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/company/setup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Image from "next/image";
import { type FetchResult, useMutation } from "@apollo/client";
import { CREATE_COMPANY } from "@/lib/graphql/mutations";
import Loader from "@/components/layout/Loader";
import { router } from "next/client";
import { useRouter } from "next/navigation";
import { toast } from "@/components/ui/use-toast";

type DisplayInputs = {
Expand All @@ -26,6 +26,7 @@ type MutationInputs = {

function Setup() {
const [step, setStep] = useState(0);
const router = useRouter();
const [inputs, setInputs] = useState<DisplayInputs>({
"Full Company Name": "",
"CEO Email": "",
Expand Down Expand Up @@ -87,7 +88,7 @@ function Setup() {
className: "border-emerald-300"
});
setTimeout(() => {
void router.push("/login");
router.push("/login");
}, 1000);
} else {
setError("An error occurred while creating the company: " + res.data?.createCompany);
Expand Down

0 comments on commit 98ce50f

Please sign in to comment.