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 f0f0d56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Expand Up @@ -251,7 +251,10 @@ 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 f0f0d56

Please sign in to comment.