Skip to content

Commit

Permalink
fix: Cleaner game search
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed Oct 28, 2023
1 parent 9c5325a commit 0963d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/store/main/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function mainStateReducer(state: MainState = createInitialState(), action
metaState: RequestState.RECEIVED,
// Dirty games
isDirty: action.total !== 0,
games: action.total === 0 ? [] : view.games,
games: [],
lastCount: action.total === 0 ? 0 : view.lastCount,
pageState: {},
// Update total (for the first response only)
Expand Down

0 comments on commit 0963d74

Please sign in to comment.