Skip to content

Commit

Permalink
naming mistake...
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Lerner committed Aug 12, 2024
1 parent 38c6787 commit 29f759f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/packs/components/workflows/grading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ const Grade: React.FC<{
answers: currentAnswers,
}), [currentAnswers]);
const [showPostponeProblem, setShowPostponeProblem] = useState(false);
const postponeProblem = (notes: string, stopGrading) => {
const postponeProblem = (notes: string, stopGradingForNow: boolean) => {
setShowPostponeProblem(false);
mutatePostpone({
variables: {
Expand All @@ -1325,7 +1325,7 @@ const Grade: React.FC<{
},
},
onCompleted(_response) {
if (stopGrading) {
if (stopGradingForNow) {
stopGrading();
} else {
changeProblems();
Expand Down

0 comments on commit 29f759f

Please sign in to comment.