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 3ce87818..c1a2193b 100644 --- a/src/renderer/src/pages/game-details/modals/repacks-modal.tsx +++ b/src/renderer/src/pages/game-details/modals/repacks-modal.tsx @@ -46,9 +46,7 @@ export function RepacksModal({ const getInfoHash = useCallback(async () => { const torrent = await parseTorrent(game?.uri ?? ""); - if (torrent.infoHash) { - setInfoHash(torrent.infoHash); - } + if (torrent.infoHash) setInfoHash(torrent.infoHash); }, [game]); useEffect(() => {