Skip to content

Commit

Permalink
app/classes/ClassDetails: for consistency with other views, show home…
Browse files Browse the repository at this point in the history
…work that is due today
  • Loading branch information
thatoddmailbox committed Feb 9, 2023
1 parent 562420e commit 50adf48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/classes/ClassDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class ClassDetails extends Component {
filteredHomework = state.homework.filter(function(item) {
if (item.name.toLowerCase().startsWith("none") || item.name.toLowerCase().startsWith("nohw")) {
return false;
} else if ((moment(item.due).unix() < moment().unix()) && item.complete != 0) {
} else if (moment(item.due).isBefore(moment(), "day") && item.complete != 0) {
return false;
}
return true;
Expand Down

0 comments on commit 50adf48

Please sign in to comment.