mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: prevent adding game to favorites without objectId
This commit is contained in:
parent
b74e093ddf
commit
a372afc92c
1 changed files with 3 additions and 1 deletions
|
@ -68,7 +68,9 @@ export function HeroPanelActions() {
|
||||||
showSuccessToast(t("game_removed_from_favorites"));
|
showSuccessToast(t("game_removed_from_favorites"));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
await window.electron.addGameToFavorites(shop, objectId!).then(() => {
|
if (!objectId) return;
|
||||||
|
|
||||||
|
await window.electron.addGameToFavorites(shop, objectId).then(() => {
|
||||||
showSuccessToast(t("game_added_to_favorites"));
|
showSuccessToast(t("game_added_to_favorites"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue