From 3d7dd7212bd2d249a666117b29a899797f380f87 Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 18 Nov 2025 01:02:34 +0100 Subject: [PATCH] fix: add type assertion for PRIZE_CONFIG access in historique page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add type assertion to handle prize types that may not exist in PRIZE_CONFIG. This is the same fix applied to app/client/page.tsx to prevent TypeScript compilation errors when accessing PRIZE_CONFIG with dynamic prize types (PHYSICAL, DISCOUNT, GRAND_PRIZE). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/historique/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/historique/page.tsx b/app/historique/page.tsx index 5216e01..feb59e7 100644 --- a/app/historique/page.tsx +++ b/app/historique/page.tsx @@ -259,7 +259,7 @@ export default function HistoriquePage() { {filteredTickets.map((ticket) => { const prizeConfig = ticket.prize - ? PRIZE_CONFIG[ticket.prize.type] + ? PRIZE_CONFIG[ticket.prize.type as keyof typeof PRIZE_CONFIG] : null; return (