Skip to content

Commit

Permalink
fix: handle missing case
Browse files Browse the repository at this point in the history
  • Loading branch information
ansh-saini committed Oct 12, 2024
1 parent 8a12750 commit 0f8fa84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/projectRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function topicToImg(topic: string): ImageInfo | false {
alt: 'ACM AI Logo',
};
case ACMCommitteeTopics.CYBER:
case 'cyber':
return {
image: '/committee-logos/cyber-logo.png',
alt: 'ACM Cyber Logo',
Expand Down Expand Up @@ -184,6 +185,7 @@ export function getImageFromRepo(repo: GitHubRepo): ImageInfo {
}

function getACMImageFromTopics(topics: string[] | undefined): ImageInfo {
// console.log(topics)
if (topics) {
for (const topic of topics) {
const committeeImg = topicToImg(topic);
Expand Down

0 comments on commit 0f8fa84

Please sign in to comment.