Archived
feat: Points for doing reviews
This commit is contained in:
1 parent
d08e591e27
commit
977f5df9dd
7 files changed
+35
-17
No files matched your search
@@ -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