Skip to content

Commit f75503e

Browse files
committed
Fix Navbar Link
1 parent 701c306 commit f75503e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/components/Navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Button, Drawer, List, ListItem, Toolbar, IconButton, Menu, MenuItem } f
1010
const PressStart2P = localfont({ src: './../assets/fonts/PressStart2P.ttf' })
1111

1212
const Navbar = () => {
13-
const { isConnected } = useAccount()
13+
const { isConnected, address } = useAccount()
1414
const userIsEventOwner = true
1515
const [menuAnchor, setMenuAnchor] = useState<null | HTMLElement>(null)
1616

@@ -77,7 +77,7 @@ const Navbar = () => {
7777
{isConnected ? (
7878
<li>
7979
<a
80-
href={`/leaderboard/${useAccount().address}`}
80+
href={`/leaderboard/${address}`}
8181
className="block py-1 px-5 text-white hover:bg-[#008790] rounded-full focus:bg-[#008770]"
8282
>
8383
Profile

0 commit comments

Comments
 (0)