lock offset updates

This commit is contained in:
2024-11-14 13:33:45 -07:00
parent b1e48e0ea9
commit 0366b37586
2 changed files with 11 additions and 13 deletions

View File

@@ -113,19 +113,17 @@ export default function AssignmentGroupManagement() {
>
Update Assignment Groups In Canvas
</button>
{applyInCanvas.isPending && <Spinner />}
{applyInCanvas.isSuccess && (
<div>
{
"You will need to go to your course assignments page > settings > Assignment Group Weights"
}
<br />
{
"and check the 'Weight final grade based on assignment groups' box"
}
</div>
)}
</div>
{applyInCanvas.isPending && <Spinner />}
{applyInCanvas.isSuccess && (
<div>
{
"You will need to go to your course assignments page > settings > Assignment Group Weights"
}
<br />
{"and check the 'Weight final grade based on assignment groups' box"}
</div>
)}
</div>
);
}

View File

@@ -13,7 +13,7 @@ export default function DefaultDueTime() {
const [settings] = useLocalCourseSettingsQuery();
const updateSettings = useUpdateLocalCourseSettingsMutation();
const [haveLockOffset, setHaveLockOffset] = useState(
!!settings.defaultLockHoursOffset
typeof settings.defaultLockHoursOffset !== "undefined"
);
return (
<div className={settingsBox}>