Skip to content

Commit 9d42c96

Browse files
committed
Fix error handling in sendReport
1 parent 9127aaf commit 9d42c96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/scripts/study.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ export function sendReport() {
236236
let today = DateTime.utc().toFormat("yyyy-MM-dd");
237237
return browser.storage.local.set({ studyLastReport: today });
238238
} else if (res) { // reporting failed somehow
239-
console.error("Reporting failed:", response);
239+
console.error("Reporting failed:", res);
240240
}
241-
});
241+
})
242+
.catch((error) => console.error(error));
242243
}

0 commit comments

Comments
 (0)