File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export default function Dashboard() {
60
60
61
61
return (
62
62
< div >
63
- < Navbar userId = { userData . user_id } />
63
+ < Navbar userId = { userData ? .user_id } />
64
64
< div className = "container mx-auto p-4" >
65
65
< h1 className = "text-xl font-bold mb-4" > Welcome, { userData . name } </ h1 >
66
66
< div className = "mb-4" >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Link from "next/link";
3
3
import { Button } from "@/components/ui/button" ;
4
4
import { ThemeToggle } from "@/components/theme-toggle" ;
5
5
import { supabase } from "@/lib/supabaseClient" ;
6
- import { useRouter } from " next/router" ;
6
+ import { useRouter } from ' next/navigation' ;
7
7
8
8
const Navbar = ( { userId } : { userId ?: string } ) => {
9
9
const [ isMenuOpen , setIsMenuOpen ] = useState ( false ) ;
You can’t perform that action at this time.
0 commit comments