From 770f1d799a5bd21523f2cf02db5785bfd93c5a85 Mon Sep 17 00:00:00 2001 From: Aaron Opell Date: Thu, 29 Dec 2022 14:59:39 -0800 Subject: [PATCH] fixed bug saving course settings --- js/course.js | 2 +- manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/course.js b/js/course.js index 3d82a07f..7586cc25 100644 --- a/js/course.js +++ b/js/course.js @@ -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", diff --git a/manifest.json b/manifest.json index 827bb355..2d4769e0 100644 --- a/manifest.json +++ b/manifest.json @@ -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",