Skip to content

Commit fa2c242

Browse files
committed
fix: show steam on all filters
1 parent f8b77ff commit fa2c242

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/frontend/state/libraryState.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ import {
2525
epicCategories,
2626
gogCategories,
2727
hyperPlayCategories,
28-
sideloadedCategories
28+
sideloadedCategories,
29+
steamCategories
2930
} from 'frontend/helpers/library'
3031
import storeAuthState from './storeAuthState'
3132

@@ -347,10 +348,10 @@ class LibraryState {
347348
} else {
348349
const isEpic = epicCategories.includes(this.category)
349350
const isGog = gogCategories.includes(this.category)
351+
const isSteam = steamCategories.includes(this.category)
350352
const epicLibrary = isEpic ? this.epicLibrary : []
351353
const gogLibrary = isGog ? this.gogLibrary : []
352-
const steamLibrary =
353-
this.category === 'steam' ? steamLibraryStore.get('games', []) : []
354+
const steamLibrary = isSteam ? steamLibraryStore.get('games', []) : []
354355
const sideloadedApps = sideloadedCategories.includes(this.category)
355356
? this.sideloadedLibrary
356357
: []

0 commit comments

Comments
 (0)