diff --git a/src/renderer/src/hooks/use-search-suggestions.ts b/src/renderer/src/hooks/use-search-suggestions.ts index b5c3a67b..c4d5b188 100644 --- a/src/renderer/src/hooks/use-search-suggestions.ts +++ b/src/renderer/src/hooks/use-search-suggestions.ts @@ -75,7 +75,7 @@ export function useSearchSuggestions( setIsLoading(true); try { - const response = await globalThis.electron.hydraApi.get< + const response = await window.electron.hydraApi.get< { title: string; objectId: string; diff --git a/src/renderer/src/pages/game-details/modals/repacks-modal.tsx b/src/renderer/src/pages/game-details/modals/repacks-modal.tsx index f350222a..51744fc5 100644 --- a/src/renderer/src/pages/game-details/modals/repacks-modal.tsx +++ b/src/renderer/src/pages/game-details/modals/repacks-modal.tsx @@ -151,6 +151,7 @@ export function RepacksModal({ }; return levelDBService.put(gameKey, updated, "games"); } + return Promise.resolve(); }) .catch(() => {});