Skip to content

Commit

Permalink
- very perplexed by tsc constraint observations
Browse files Browse the repository at this point in the history
  • Loading branch information
curtelsasser committed May 28, 2021
1 parent 3d59ea7 commit 073967c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/redux/robot/reducer/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ function handlePauseResponse(state: SessionState, action: any): SessionState {
}

function handleResume(state: SessionState, action: any): SessionState {
const pausedDuration = state.pausedTime ? Date.now() - state.pausedTime : 0
const pausedDuration =
state.pausedTime === null ? 0 : Date.now() - Number(state.pausedTime)
return {
...state,
pausedDuration: state.pausedDuration + pausedDuration,
Expand Down

0 comments on commit 073967c

Please sign in to comment.