mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
fix: prevent adding game to favorites without objectId
This commit is contained in:
@@ -68,7 +68,9 @@ export function HeroPanelActions() {
|
||||
showSuccessToast(t("game_removed_from_favorites"));
|
||||
});
|
||||
} else {
|
||||
await window.electron.addGameToFavorites(shop, objectId!).then(() => {
|
||||
if (!objectId) return;
|
||||
|
||||
await window.electron.addGameToFavorites(shop, objectId).then(() => {
|
||||
showSuccessToast(t("game_added_to_favorites"));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user