fix: Metadata only updated on correct answers
This commit is contained in:
@@ -4,7 +4,9 @@ import { IUser } from "../models/user";
|
||||
|
||||
import Application from "../components/app";
|
||||
|
||||
import { setAuthenticated, setUser, setDidLogin } from "../actions";
|
||||
import { setAuthenticated, setUser, setDidLogin, setLastReview } from "../actions";
|
||||
|
||||
import { IReviewMetadata } from "../models/review";
|
||||
|
||||
const mapStateToProps = state => {
|
||||
return {
|
||||
@@ -17,6 +19,7 @@ const mapDispatchToProps = dispatch => {
|
||||
setAuthenticated: (status: boolean) => dispatch(setAuthenticated(status)),
|
||||
setDidLogin: (state: boolean) => dispatch(setDidLogin(state)),
|
||||
setUser: (user: IUser) => dispatch(setUser(user)),
|
||||
setLastReview: (meta: IReviewMetadata) => dispatch(setLastReview(meta)),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user