Skip to content

Commit

Permalink
LibraryContext: solve commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
arielj committed Oct 22, 2023
1 parent a4d51d4 commit 3206b0a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/frontend/state/GlobalState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ class GlobalState extends PureComponent<Props> {
}

handleSuccessfulLogin = (runner: Runner) => {
// this.handleCategory('all')
storage.setItem('category', 'all')
this.refreshLibrary({
runInBackground: false,
library: runner
Expand Down Expand Up @@ -638,10 +638,7 @@ class GlobalState extends PureComponent<Props> {
async componentDidMount() {
const { t } = this.props
const { epic, gameUpdates = [], libraryStatus } = this.state
// const oldCategory: string = category
// if (oldCategory === 'epic') {
// this.handleCategory('all')
// }

// Deals launching from protocol. Also checks if the game is already running
window.api.handleLaunchGame(
async (
Expand Down

0 comments on commit 3206b0a

Please sign in to comment.