fix: sanity check in case repack is null

This commit is contained in:
Zamitto 2024-05-18 19:05:55 -03:00
parent 5b864367e8
commit be13ecc5aa
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ export function Downloads() {
if (GameStatusHelper.isReady(game?.status)) { if (GameStatusHelper.isReady(game?.status)) {
return ( return (
<> <>
<p>{game?.repack.title}</p> <p>{game?.repack?.title}</p>
<p>{t("completed")}</p> <p>{t("completed")}</p>
</> </>
); );

View File

@ -95,7 +95,7 @@ export interface Game extends Omit<CatalogueEntry, "cover"> {
folderName: string; folderName: string;
downloadPath: string | null; downloadPath: string | null;
repacks: GameRepack[]; repacks: GameRepack[];
repack: GameRepack; repack: GameRepack | null;
progress: number; progress: number;
fileVerificationProgress: number; fileVerificationProgress: number;
decompressionProgress: number; decompressionProgress: number;