Skip to content

Commit

Permalink
Merge pull request #242 from SchoodEIP/chart-fix
Browse files Browse the repository at this point in the history
Chart fix
  • Loading branch information
Exiels authored May 30, 2024
2 parents c12a8a6 + f594f06 commit 06bf24a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Components/Questionnaire/teacherFormContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const TeacherFormContent = (props) => {
<li className='answer' style={question.active ? { display: 'flex', gap: '25px' } : { display: 'none' }} key={i}>
<span style={{ listStyle: 'none' }}>{answer.title}</span>
<div className='percentage-container'>
<span data-testid={`multiple-answer-${i}`}>{answer.count}</span>
<span data-testid={`multiple-answer-${i}`}>{answer?.count ? answer?.count : 0}</span>

Check warning on line 73 in src/Components/Questionnaire/teacherFormContent.jsx

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🌿 Branch is not covered

Warning! Not covered branch
</div>
</li>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/Users/Student/statisticsStudent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const StudentStatPage = () => {
} else {
createChart()
}
}, [moodData])
}, [moodData, chart])

const calculateStartDate = (date, filter) => {
const selectedDate = new Date(date)
Expand Down
2 changes: 1 addition & 1 deletion src/Users/Teacher/statisticsTeacher.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react'
import HeaderComp from '../../Components/Header/headerComp'
import { Chart } from 'chart.js/auto'
import Chart from 'chart.js/auto'
import '../../css/pages/homePage.scss'
import '../../css/pages/statistiques.scss'
import { library } from '@fortawesome/fontawesome-svg-core'
Expand Down

0 comments on commit 06bf24a

Please sign in to comment.