fix: fixing stale downloads not resetting

This commit is contained in:
Chubby Granny Chaser 2024-05-30 00:40:39 +01:00
parent 84c746ef35
commit 1171e95b87
No known key found for this signature in database
8 changed files with 25 additions and 21 deletions

View file

@ -41,7 +41,7 @@ export function Downloads() {
resumeDownload,
removeGameFromLibrary,
cancelDownload,
deleteGame,
removeGameInstaller,
isGameDeleting,
} = useDownload();
@ -224,10 +224,8 @@ export function Downloads() {
};
const handleDeleteGame = async () => {
if (gameToBeDeleted.current) {
await deleteGame(gameToBeDeleted.current);
await removeGameFromLibrary(gameToBeDeleted.current);
}
if (gameToBeDeleted.current)
await removeGameInstaller(gameToBeDeleted.current);
};
return (