fix: add type assertion for PRIZE_CONFIG access in historique page
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 <noreply@anthropic.com>
This commit is contained in:
parent
00f5d432dc
commit
3d7dd7212b
|
|
@ -259,7 +259,7 @@ export default function HistoriquePage() {
|
||||||
<tbody className="bg-white divide-y divide-gray-200">
|
<tbody className="bg-white divide-y divide-gray-200">
|
||||||
{filteredTickets.map((ticket) => {
|
{filteredTickets.map((ticket) => {
|
||||||
const prizeConfig = ticket.prize
|
const prizeConfig = ticket.prize
|
||||||
? PRIZE_CONFIG[ticket.prize.type]
|
? PRIZE_CONFIG[ticket.prize.type as keyof typeof PRIZE_CONFIG]
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user