Add score property to UserData interface across navigation and profile components: Update Navigation.tsx, NavigationWrapper.tsx, and PlayerStats.tsx to include score, ensuring consistent user data handling and display.

This commit is contained in:
Julien Froidefond
2025-12-16 16:29:21 +01:00
parent ffbf3cd42f
commit f45cc1839e
3 changed files with 15 additions and 92 deletions

View File

@@ -11,6 +11,7 @@ interface UserData {
xp: number;
maxXp: number;
level: number;
score: number;
}
export default async function NavigationWrapper() {
@@ -31,6 +32,7 @@ export default async function NavigationWrapper() {
xp: true,
maxXp: true,
level: true,
score: true,
}),
challengeService.getActiveChallengesCount(session.user.id),
]);