Skip to content

Commit

Permalink
Removed dependecies of hoodiesYearTag
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredfl committed Nov 28, 2024
1 parent 52fb2f3 commit 9f13226
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shared/utils/hodis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export async function extractYearFromUser(kthId: string): Promise<{
const yearTagWithDash = `${yearTag
.slice(0, 1)
.toUpperCase()}-${yearTag.slice(1)}`;
return { yearRole: yearTagWithDash, year: hodisUser.year };
const year = 2000 + parseInt(yearTag.slice(1));
return { yearRole: yearTagWithDash, year: year };
}

return { year: null, yearRole: null };
Expand Down

0 comments on commit 9f13226

Please sign in to comment.