Skip to content

Commit

Permalink
Fix undefined text on disabled Ora (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fonger committed Apr 21, 2020
1 parent df549b4 commit 4c60b6a
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 4c60b6a

Please sign in to comment.