diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-10 16:03:54 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-10 16:03:54 +0100 |
commit | 91e284d685dab7525c9526be1cb264a7a9c65c5c (patch) | |
tree | 85eed8b5e6e35bf17668ea8a75f9108d1ae41474 /pages | |
parent | f5b8dd384afb059aabc24af3539f30928c7f7da9 (diff) |
recent games on user page working :tada:
Diffstat (limited to 'pages')
-rw-r--r-- | pages/user.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/user.tsx b/pages/user.tsx index a8cc9c5..280f8e2 100644 --- a/pages/user.tsx +++ b/pages/user.tsx @@ -109,6 +109,8 @@ export default function AccountPage() { data: { "id": id || self_id } }); + console.log(userGamesReq.data) + setGameInfo(userGamesReq.data); } else { window.history.go(-1); @@ -176,7 +178,7 @@ export default function AccountPage() { <InfoModule icon={<Icon size={1} path={mdiGamepadSquareOutline}/>} label={ gameInfo?.totals.games + " potjes" }/> </InfoSection> <Vierkant> - <RecentGames/> + <RecentGames games={gameInfo?.games}/> </Vierkant> </CenteredPage> </div> |