feat: use await for firstSyncWithRemoteIfNeeded

This commit is contained in:
Zamitto
2025-07-30 07:52:52 -03:00
parent 737dc37433
commit d28a5b828f
3 changed files with 8 additions and 4 deletions

View File

@@ -36,7 +36,11 @@ export function GameItem({ game }: GameItemProps) {
(steamGenre) => steamGenre === genre
);
if (index && steamGenres[language] && steamGenres[language][index]) {
if (
index !== undefined &&
steamGenres[language] &&
steamGenres[language][index]
) {
return steamGenres[language][index];
}