From 82b5bd62a0e82abe2d9f00900df3baf059f52859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linn=C3=A9a?= Date: Fri, 16 Jan 2026 23:10:11 +0100 Subject: [PATCH] fix 11a and 12a in gig list --- src/app/gigs/list.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/gigs/list.tsx b/src/app/gigs/list.tsx index 2ce7b43b..4959095e 100644 --- a/src/app/gigs/list.tsx +++ b/src/app/gigs/list.tsx @@ -24,7 +24,8 @@ const fetchGigs = async (year: number, tab: string) => { const numberSuffix = (n: number) => { const lastDigit = n % 10; - return lastDigit === 1 || lastDigit === 2 ? 'a' : 'e'; + const secondDigit = (((n % 100) - lastDigit) / 10); + return (lastDigit === 1 || lastDigit === 2) and secondDigit !== 1 ? 'a' : 'e'; }; const GigList = async ({ year, tab }: GigListProps) => {