Fix incorrect filtering of effect sources.

This commit is contained in:
2021-05-29 12:54:57 -07:00
parent e26747cc7c
commit b134f1849a
3 changed files with 11 additions and 12 deletions

View File

@ -7,8 +7,8 @@ const DEFAULT_PROMPT = ">";
export default class User {
#prompt: string;
constructor(prompt: string) {
this.#prompt = prompt || DEFAULT_PROMPT;
constructor(prompt: string = DEFAULT_PROMPT) {
this.#prompt = prompt;
}
ask(question: string): string {