Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 8ca5e31

Browse files
committed
Fix: if percent is 0 it it is falsey
1 parent 5cdb1ec commit 8ca5e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runestone/common/js/runestonebase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default class RunestoneBase {
9898
eventInfo.course_name = eBookConfig.course;
9999
eventInfo.clientLoginStatus = eBookConfig.isLoggedIn;
100100
eventInfo.timezoneoffset = new Date().getTimezoneOffset() / 60;
101-
if (this.percent) {
101+
if (typeof(this.percent) === "number") {
102102
eventInfo.percent = this.percent;
103103
}
104104
if (

0 commit comments

Comments
 (0)