Fix attendance sheet Withdrawn student count

This commit is contained in:
Tanner Collin 2022-02-03 23:44:31 +00:00
parent 20122427e7
commit cf6b37b0cf

View File

@ -12,7 +12,7 @@ import { MembersDropdown } from './Members.js';
class AttendanceSheet extends React.Component { class AttendanceSheet extends React.Component {
render() { render() {
const clazz = this.props.clazz; const clazz = this.props.clazz;
const num = clazz.students.length; const num = clazz.students.filter(x => x.attendance_status !== 'Withdrawn').length;
return ( return (
<div style={{ padding: '3rem', background: 'white', width: '100%', height: '100%' }}> <div style={{ padding: '3rem', background: 'white', width: '100%', height: '100%' }}>