Skip to content

Commit

Permalink
modrinth mod icon url can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Oct 28, 2024
1 parent 0ac2eaf commit 027454e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modrinth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface ModrinthMod {
title: string
categories: string[]
downloads?: number
icon_url: string
icon_url: string | null
}

type ModDataWithId = ModData & {
Expand Down Expand Up @@ -47,7 +47,7 @@ export default class ModrinthService {
name: data.title,
slug: data.slug,
categories: data.categories ?? [],
icon: data.icon_url,
icon: data.icon_url ?? undefined,
popularityScore: data.downloads,
summary: data.description,
websiteUrl: `https://modrinth.com/mod/${data.slug}`,
Expand Down

0 comments on commit 027454e

Please sign in to comment.