Skip to content

Commit 249c6de

Browse files
author
Ravi Majithia
committed
Handle inconsistent summary screen
1 parent cdf8d98 commit 249c6de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/interactive-video.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,8 @@ InteractiveVideo.prototype.attach = function ($container) {
694694
});
695695
}
696696

697-
// Show the score star if there are endscreens and interactions available or user is editing
698-
this.hasStar = this.editor || this.options.assets.endscreens !== undefined && isAnswerable;
697+
// Show the score star if there are endscreens and interactions available
698+
this.hasStar = this.editor || (this.options.assets.endscreens !== undefined && this.options.assets.endscreens.length) && isAnswerable;
699699

700700
// Video with interactions
701701
this.attachVideo(this.$videoWrapper);

0 commit comments

Comments
 (0)