diff --git a/components/Party.tsx b/components/Party.tsx index 5dbadab..a525852 100644 --- a/components/Party.tsx +++ b/components/Party.tsx @@ -104,6 +104,7 @@ export default function Party() { return ( + {party.winner &&

Last Round's Winner: {party.winner.name}

}

Mode: {_.startCase(_.toLower(party.mode))}

{!isAdmin && (

diff --git a/lib/user.ts b/lib/user.ts index a231a21..bfefbcf 100644 --- a/lib/user.ts +++ b/lib/user.ts @@ -12,6 +12,7 @@ export async function getUser(email: string) { party: { include: { players: true, + winner: true, }, }, },