Skip to content

Commit

Permalink
fix: use mobx action for setting state
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Oct 18, 2022
1 parent 361f773 commit eec7ae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/javascripts/Controllers/PaneController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export class PaneController {

mediumScreenMQHandler = (event: MediaQueryListEvent) => {
if (event.matches) {
this.isInMobileView = false
this.setIsInMobileView(false)
} else {
this.isInMobileView = true
this.setIsInMobileView(true)
}
}

Expand Down

0 comments on commit eec7ae1

Please sign in to comment.