UNPKG

326 BJavaScriptView Raw
1export default function isCorrect(config) {
2 return (state = true, action) => {
3 switch (action.type) {
4 case 'answer':
5 {
6 const answerAction = action;
7 return answerAction.payload.isCorrect;
8 }
9
10 default:
11 return state;
12 }
13 };
14}
15//# sourceMappingURL=is-correct.js.map
\No newline at end of file