Skip to content

Commit

Permalink
Fixed build error
Browse files Browse the repository at this point in the history
  • Loading branch information
hyldmo committed Oct 4, 2021
1 parent d45af4d commit 79d7f11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@types/webpack-env": "^1.16.0",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.2.0",
"autoprefixer": "^9.8.6",
"css-loader": "^4.3.0",
"cypress": "^5.2.0",
"env-cmd": "^9.0.3",
Expand Down
5 changes: 2 additions & 3 deletions src/sagas/tracker.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { Predicate } from '@redux-saga/types'
import { Action, Actions } from 'actions'
import { call, put, select, takeLatest } from 'redux-saga/effects'
import { Selector, State } from 'types'
import { sleep } from 'utils'

const SAVE_KEY = 'activity_tracker'

const predicate: Predicate<Action> = (a: Action) => a.type.includes('ACTIVITY')
const predicate = (a: Action) => a.type.includes('ACTIVITY')

export default function* () {
yield takeLatest<Action>(predicate as any, save)
yield takeLatest<Action>(predicate, save)
yield takeLatest('SAVE_LOAD', load)
}

Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11418,6 +11418,7 @@ fsevents@^2.1.2:
"@types/webpack-env": ^1.16.0
"@typescript-eslint/eslint-plugin": ^4.2.0
"@typescript-eslint/parser": ^4.2.0
autoprefixer: ^9.8.6
classnames: ^2.2.6
connected-react-router: ^6.5.2
css-loader: ^4.3.0
Expand Down

0 comments on commit 79d7f11

Please sign in to comment.