Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
M9k committed May 13, 2018
1 parent 1ea8434 commit f661158
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/teacher/TeacherExamStudents.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class TeacherExamStudents extends React.Component {
addGradeBuilder(objForm) {
let grade = Number(objForm.grade.value);
if (grade < 0) grade = 0;
if (grade > 30) grade = 32;
if (grade > 30) grade = 31;
this.setState({
viewModalAddVote: false,
});
Expand Down
2 changes: 1 addition & 1 deletion src/sagas/StudentSaga.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function* getExams(action) {
const examsData = yield all(apiExamDataCall);
const apiExamValuationCall = Array(num).fill().map((_, i) =>
call(studentExams.getExamValuationAt, action.address, i));
const examsValuation = (yield all(apiExamValuationCall)).map(x => (x === 0 ? null : x - 1));
const examsValuation = (yield all(apiExamValuationCall)).map(x => (x === 0 ? null : x));
const apiExamSubscriptionCall = Array(num).fill().map((_, i) =>
call(studentExams.getExamSubscriptionAt, action.address, i));
const examsSubscription = yield all(apiExamSubscriptionCall);
Expand Down
4 changes: 2 additions & 2 deletions testnpm/integration/redux/Student.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe('Student feature', () => {
teacherAddress: '0x0001',
teacherName: 'marco',
teacherSurname: 'laMalfa',
valuation: 29,
valuation: 30,
subscription: true,
},
{
Expand All @@ -135,7 +135,7 @@ describe('Student feature', () => {
teacherAddress: '0x0002',
teacherName: 'matteo',
teacherSurname: 'lodi',
valuation: 22,
valuation: 23,
subscription: true,
},
],
Expand Down

0 comments on commit f661158

Please sign in to comment.