Skip to content

Commit

Permalink
Fix undefined text on disabled Ora
Browse files Browse the repository at this point in the history
  • Loading branch information
Fonger committed Apr 17, 2020
1 parent df549b4 commit 1a8b943
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -251,7 +251,9 @@ class Ora {
}

if (!this.isEnabled) {
this.stream.write(`- ${this.text}\n`);
if (this.text) {
this.stream.write(`- ${this.text}\n`);
}
return this;
}

Expand Down

0 comments on commit 1a8b943

Please sign in to comment.