Skip to content

Commit

Permalink
fixed bug saving course settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aopell committed Dec 29, 2022
1 parent 02dd763 commit 770f1d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/course.js
Expand Up @@ -183,7 +183,7 @@ function saveCourseSettings(skipSavingGradingScale = false) {
obj2.hasOwnProperty(key) && obj1[key] === obj2[key]
);

if (!shallowCompare(scale, currentValue[courseIdNumber])) {
if (!currentValue[courseIdNumber] || !shallowCompare(scale, currentValue[courseIdNumber])) {
trackEvent("update_setting", {
id: "gradingScales",
context: "Course Settings",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Expand Up @@ -10,7 +10,7 @@
"update_url": "https://schoologypl.us/firefox_updates.json"
}
},
"version": "7.7.2",
"version": "7.7.3",
"icons": {
"128": "imgs/icon@128.png",
"64": "imgs/icon@64.png",
Expand Down

0 comments on commit 770f1d7

Please sign in to comment.