Skip to content

Commit fb5eb2c

Browse files
authored
Merge pull request #170 from Eroge-Abyss/dodo-fix
fix: random button selects from selecedCategories only instead of all games list
2 parents e7468ab + 87799ec commit fb5eb2c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/home/RandomGameButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import { goto } from '$app/navigation';
66
77
const getRandomGame = () => {
8-
const games = Object.entries(gamesStore.list);
8+
const games = Object.entries(gamesStore.filtered);
99
if (games.length === 0) return;
1010
const randomIndex = Math.floor(Math.random() * games.length);
1111
const selectedGame = games[randomIndex][0];

0 commit comments

Comments
 (0)