We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29bfb95 commit 068fb35Copy full SHA for 068fb35
js/XAPI.js
@@ -144,7 +144,8 @@ class XAPI extends Backbone.Model {
144
return this;
145
}
146
147
- if (this.get('state').length === 0) {
+ const state = this.get('state');
148
+ if (!state || Object.keys(state).length === 0) {
149
// This is a new attempt, send 'attempted'.
150
await this.sendStatement(this.getCourseStatement(window.ADL.verbs.attempted));
151
} else {
0 commit comments