Handle games with no image

This commit is contained in:
Mosh Hamedani 2023-03-03 09:36:19 -08:00
parent e2941cfba3
commit e54cdbab3e
2 changed files with 2 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View file

@ -1,6 +1,7 @@
import noImage from '../assets/no-image-placeholder.webp';
const getCroppedImageUrl = (url: string) => {
if (!url) return '';
if (!url) return noImage;
const target = 'media/';
const index = url.indexOf(target) + target.length;