Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function* watchStatus ({ payload: {status} }: any) {
const { currentTime } = yield select(playerStateSelector)
if (status === 'PLAYING') {
yield fork(MusicControl.updatePlayback, {
state: MusicControl.STATE_PLAYING,
elapsedTime: currentTime
})
}
if (status === 'PAUSED') {
yield fork(MusicControl.updatePlayback, {
state: MusicControl.STATE_PAUSED,
elapsedTime: currentTime
})
}
}