Skip to content

Commit

Permalink
fixes render issue after buying token
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwartz10 committed Jan 18, 2018
1 parent 8cbfe84 commit 7bd2a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function (state = defaultUser, action) {
case CREATE_USER:
return action.user;
case BUY_TOKENS:
return Object.assign({}, state, action.amount)
return Object.assign({}, state, {coinBalance: action.amount})
default:
return state
}
Expand Down

0 comments on commit 7bd2a3d

Please sign in to comment.