Skip to content

Commit 7c24d26

Browse files
committed
small changes
1 parent f61c7df commit 7c24d26

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

src/Components/LinearProgressWithLabel/ObjectiveDropDown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ function getTaskObjectivePorgress(task: TaskObjectiveProgress) {
113113
const { data: taskObjectiveProgress } = useGetTaskObjectiveProgressQuery({
114114
variables: {
115115
taskId: task.task.id,
116+
username: 'Google_114813486146105420824',
116117
},
117118
});
118119
if (taskObjectiveProgress === undefined) {

src/Components/SingleStudentOverview/SingleMissionOverview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ function getTaskObjectiveProgress(task: TaskStats) {
119119
const { data: taskObjectiveProgress } = useGetTaskObjectiveProgressQuery({
120120
variables: {
121121
taskId: task.taskId,
122+
username: 'Google_114813486146105420824',
122123
},
123124
});
124125
if (taskObjectiveProgress === undefined) {

src/Screens/TaskView/Rubric/MasteryRubricGrading.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export default function MasteryRubricGrading({
3434
const classes = useStyles();
3535
const [masteryVal, setMastery] = React.useState(objectiveProgress.mastery);
3636
const [editObjectiveGrade, { data }] = useMutation(EDIT_OBJECTIVE_GRADE);
37-
console.log(objectiveProgress);
3837

3938
const handleChange = (event: React.ChangeEvent<{ value: unknown }>) => {
4039
// console.log(event.target.value);
@@ -47,7 +46,9 @@ export default function MasteryRubricGrading({
4746
mastery: event.target.value,
4847
},
4948
},
50-
}).catch((error) => console.log(error));
49+
})
50+
.then((data1) => alert(data1))
51+
.catch((error) => console.log(error));
5152
setMastery(event.target.value as SetStateAction<Mastery>);
5253
};
5354

src/Screens/TaskView/TaskView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function TaskView() {
1818
console.log(history.location);
1919
const taskObjectiveProgress = history.location.state;
2020

21+
console.log(taskObjectiveProgress);
2122
const { username } = useParams<Record<string, string | undefined>>();
2223
if (taskId === undefined) {
2324
return <>Task Undefined</>;

0 commit comments

Comments
 (0)