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

View File

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