Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix(Steppers): Enforce float on state
Browse files Browse the repository at this point in the history
- Fixes #338
  • Loading branch information
alexander-heimbuch committed Feb 6, 2017
1 parent e0220e5 commit 44edf26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/reducers/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { timeToSeconds } from 'utils/time'
const playtime = (state = 0, action) => {
switch (action.type) {
case 'UPDATE_PLAYTIME':
return action.payload
return parseFloat(action.payload)
case 'SET_PLAYTIME':
return action.payload
default:
Expand Down

0 comments on commit 44edf26

Please sign in to comment.