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:
@@ -16,6 +16,7 @@ interface UserData {
|
||||
xp: number;
|
||||
maxXp: number;
|
||||
level: number;
|
||||
score: number;
|
||||
}
|
||||
|
||||
interface NavigationProps {
|
||||
|
||||
@@ -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),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user