bugfix
diff --git a/dev.js b/dev.js
index 542aece..30192d0 100644
--- a/dev.js
+++ b/dev.js
@@ -64,10 +64,12 @@
dtps.bugReport = function() {
if (window.confirm("If the issue is related to a class in any way, make sure you have that class selected before sending this bug report. By sending a bug report, logs and usage information will be sent for debugging purposes (grades will never be sent in a bug report).")) {
Sentry.configureScope((scope) => {
- scope.setExtra("class-selected", dtps.selectedClass + "-" + dtps.classes[dtps.selectedClass].id);
+ scope.setExtra("class-selected", dtps.selectedClass + (dtps.selectedClass !== "dash" ? "-" + dtps.classes[dtps.selectedClass].id : ""));
+if (dtps.selectedClass !== "dash") {
var streamTmp = JSON.parse(JSON.stringify(dtps.classes[dtps.selectedClass].stream));
streamTmp.forEach(function(v){ if (v.grade) {v.grade = v.grade.replace(v.grade.split("/")[0], "X")}; if (v.letter) {v.letter = "X"}; })
scope.setExtra("selected-stream", JSON.stringify(streamTmp));
+}
});
Sentry.captureMessage("BUG REPORT (BUILD " + $(".buildInfo").html().replace("build ", "") + "): " + window.prompt('Please describe the issue:'));
window.alert("Thanks for sending a bug report")