From b58330ed354906ab674614211a2a9313bdc5e067 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Fri, 5 Jul 2024 12:13:47 -0300 Subject: [PATCH] feat: undo change --- src/renderer/src/pages/game-details/modals/repacks-modal.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(() => {