Merge pull request #149 from ltctceplrm/master

Small fix for the null image bug for mobygames API
This commit is contained in:
Moritz Jung 2024-06-07 17:23:04 +02:00 committed by GitHub
commit f1f602f969
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@ export class MobyGamesAPI extends APIModel {
publishers: [],
genres: result.genres?.map((x: any) => x.genre_name) ?? [],
onlineRating: result.moby_score,
image: result.sample_cover.image ?? '',
image: result.sample_cover?.image ?? '',
released: true,
releaseDate: result.platforms[0].first_release_date ?? 'unknown',