diff --git a/src/app/(frontend)/profile/[username]/page.tsx b/src/app/(frontend)/profile/[username]/page.tsx
index c00aac00..8c836204 100644
--- a/src/app/(frontend)/profile/[username]/page.tsx
+++ b/src/app/(frontend)/profile/[username]/page.tsx
@@ -502,7 +502,7 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
/>
- {xp.toLocaleString()} XP
+ {xpLevel.xp.toLocaleString()} XP
@@ -828,7 +828,7 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
{xpLevel.levelName}
- {xp.toLocaleString()}
+ {xpLevel.xp.toLocaleString()}
XP
diff --git a/src/collections/users/Profiles.ts b/src/collections/users/Profiles.ts
index 4016a797..cd76010a 100644
--- a/src/collections/users/Profiles.ts
+++ b/src/collections/users/Profiles.ts
@@ -219,7 +219,10 @@ export const Profiles: CollectionConfig = {
// Contribution ledger: crowdsourced XP (granted entries only)
xpAcc += contributionsXp;
- return xpAcc;
+ // XP is integer-valued. Floor the summed total so every
+ // consumer (sidebar, profile page, dashboards) renders a whole
+ // number instead of a float such as 9,001.625.
+ return Math.floor(xpAcc);
},
],
},