From fb892265c4d58ca919ce6d4c32f396cb6d551edf Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Sat, 16 May 2026 17:29:47 +0800 Subject: [PATCH] fix: scope games listing performance tags to handheld devices --- app/games/page.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/games/page.tsx b/app/games/page.tsx index b1e97b5..33b5df4 100644 --- a/app/games/page.tsx +++ b/app/games/page.tsx @@ -143,6 +143,10 @@ export default async function GamesPage() { }) .from(performanceEntries) .innerJoin(gameVersions, eq(performanceEntries.versionId, gameVersions.id)) + .innerJoin(hardware, and( + eq(performanceEntries.hardwareSlug, hardware.slug), + eq(hardware.deviceType, "handheld"), + )) .where( and( inArray(gameVersions.gameId, gameIds),