Skip to content

Commit

Permalink
fix updateMessage method
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaobin-Jiang committed Jan 10, 2024
1 parent 4dbdbc0 commit f043947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jspsych/src/ProgressBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class ProgressBar {

private updateMessage() {
if (typeof this.message === "function") {
this.messageSpan.innerHTML = this.message(0);
this.messageSpan.innerHTML = this.message(this._progress);
} else {
this.messageSpan.innerHTML = this.message;
}
Expand Down

0 comments on commit f043947

Please sign in to comment.