Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #120 from ZendyLim/feature/#50_goi_quiz
Browse files Browse the repository at this point in the history
#50 fix bug in score
  • Loading branch information
viinkelvin authored Jun 23, 2018
2 parents 2a00a28 + ad8c360 commit c0dd553
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/actions/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function countScore(studyRecord,quizItems = 0, byPoint = false) {
if(quizItems && !byPoint){
countQuest = 100;
}
else{
else if(byPoint){
countQuest = quizItems * 2;
}

Expand Down
2 changes: 1 addition & 1 deletion app/screens/Study/score.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ const study = require('../../styles/study');
// and insert/links it into the props of our component.
// This function makes Redux know that this component needs to be passed a piece of the state
function mapStateToProps(state, props) {

console.log(state.study);
const score = Helper.countScore(state.study.studyRecord,state.study.quizSize);

return {
Expand Down

0 comments on commit c0dd553

Please sign in to comment.