Show missing image icon for missing manga thumbnail urls

This commit is contained in:
schroda
2024-09-01 00:44:48 +02:00
parent 05bdcf3905
commit 34095d4f12
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ export const SpinnerImage = forwardRef((props: IProps, imgRef: ForwardedRef<HTML
height="100%"
alignItems="center"
justifyContent="center"
sx={{ background: (theme) => theme.palette.background.default }}
sx={{ background: (theme) => theme.palette.background.default, ...spinnerStyle }}
>
<ImageIcon fontSize="large" />
</Stack>

View File

@@ -247,7 +247,7 @@ export class Mangas {
static getThumbnailUrl(manga: Partial<MangaThumbnailInfo>): string {
const thumbnailUrl = manga.thumbnailUrl
? `${manga.thumbnailUrl}?fetchedAt=${manga.thumbnailUrlLastFetched}`
: 'nonExistingMangaUrl';
: '';
return requestManager.getValidImgUrlFor(thumbnailUrl);
}