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) => {