feat: creating notification for update available

This commit is contained in:
Zamitto 2024-07-04 19:59:20 -03:00
parent 4be3db8007
commit b09f2c055f
4 changed files with 38 additions and 7 deletions

View file

@ -40,7 +40,10 @@ 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(() => {