Skip to content

Commit f961d4a

Browse files
committed
fix
1 parent fb83c39 commit f961d4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: app/dashboard/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default function Dashboard() {
6060

6161
return (
6262
<div>
63-
<Navbar userId={userData.user_id} />
63+
<Navbar userId={userData?.user_id} />
6464
<div className="container mx-auto p-4">
6565
<h1 className="text-xl font-bold mb-4">Welcome, {userData.name}</h1>
6666
<div className="mb-4">

Diff for: components/header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Link from "next/link";
33
import { Button } from "@/components/ui/button";
44
import { ThemeToggle } from "@/components/theme-toggle";
55
import { supabase } from "@/lib/supabaseClient";
6-
import { useRouter } from "next/router";
6+
import { useRouter } from 'next/navigation';
77

88
const Navbar = ({ userId }: { userId?: string }) => {
99
const [isMenuOpen, setIsMenuOpen] = useState(false);

0 commit comments

Comments
 (0)