| @@ -1214,10 +1214,16 @@ | ||
| 1214 | 1214 | question, |
| 1215 | 1215 | isShow, |
| 1216 | 1216 | isShowIndex, |
| 1217 | 1217 | isShowHint, |
| 1218 | - status | |
| 1218 | + status, | |
| 1219 | + results | |
| 1219 | 1220 | } = this.props; |
| 1221 | + if (results && results.questions && results.questions[question.id]) { | |
| 1222 | + if (typeof results.questions[question.id].correct !== 'undefined') { | |
| 1223 | + question.correct = results.questions[question.id].correct; | |
| 1224 | + } | |
| 1225 | + } | |
| 1220 | 1226 | const QuestionTypes = LP.questionTypes.default; |
| 1221 | 1227 | const editPermalink = this.getEditLink(); |
| 1222 | 1228 | if (editPermalink) { |
| 1223 | 1229 | jQuery('#wp-admin-bar-edit-lp_question').find('.ab-item').attr('href', editPermalink); |
| @@ -1332,9 +1338,10 @@ | ||
| 1332 | 1338 | answered: getQuestionAnswered(id), |
| 1333 | 1339 | questionsRendered: getData('questionsRendered'), |
| 1334 | 1340 | editPermalink: getData('editPermalink'), |
| 1335 | 1341 | numPages: getData('numPages'), |
| 1336 | - mark: getQuestionMark(id) || '' | |
| 1342 | + mark: getQuestionMark(id) || '', | |
| 1343 | + results: getData('results') | |
| 1337 | 1344 | }; |
| 1338 | 1345 | }), (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.withDispatch)(dispatch => { |
| 1339 | 1346 | const { |
| 1340 | 1347 | updateUserQuestionAnswers, |