Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix: dates on profile charts

bautistaaae3e0146990ea
diff --git a/apps/web/src/app/[locale]/(profile)/[username]/_components/dashboard/_actions.ts b/apps/web/src/app/[locale]/(profile)/[username]/_components/dashboard/_actions.ts
index af32de0f..aa4744f5 100644
--- a/apps/web/src/app/[locale]/(profile)/[username]/_components/dashboard/_actions.ts
+++ b/apps/web/src/app/[locale]/(profile)/[username]/_components/dashboard/_actions.ts
@@ -44,6 +44,9 @@ export async function getChallengeHistoryByCategory(type: HistoryType, userId: s
slug: true,
name: true,
submission: {
+ where: {
+ userId,
+ },
orderBy: {
createdAt: 'desc',
},