Skip to content

Commit

Permalink
shuffle questions
Browse files Browse the repository at this point in the history
  • Loading branch information
ykrueng committed Dec 30, 2018
2 parents bae8a90 + ddf7776 commit f16181b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testnet/src/store/actions/quizzActions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import study from "../../apis/react-study";
import _ from "lodash";

/*
Quizz Action Types
Expand Down Expand Up @@ -215,7 +216,7 @@ export const getQuestions = id => dispatch => {
.then(res => {
dispatch({
type: QUESTIONS_SUCCESS,
payload: res.data
payload: _.shuffle(res.data)
});
})
.catch(err => {
Expand Down

0 comments on commit f16181b

Please sign in to comment.