feat: Points for doing reviews
This commit is contained in:
@@ -202,6 +202,12 @@ export function LateinicusApp(state: IState = initialState, action: any) {
|
||||
return Object.assign({}, state, {
|
||||
lastReview: action.metadata,
|
||||
});
|
||||
case Actions.SET_USER_SCORE_DELTA:
|
||||
return Object.assign({}, state, {
|
||||
user: Object.assign({}, state.user, {
|
||||
score: state.user.score + action.delta,
|
||||
}),
|
||||
});
|
||||
case Actions.REVIEW_SET_LOADING:
|
||||
return Object.assign({}, state, {
|
||||
review: Object.assign({}, state.review, {
|
||||
|
||||
Reference in New Issue
Block a user