Skip to content

Commit

Permalink
feat: added isValid phrase if has 12 words
Browse files Browse the repository at this point in the history
  • Loading branch information
zheleznov163 committed Jun 22, 2022
1 parent 76bc0d6 commit 3b48028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Phrase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class Phrase {
}

get isValid() {
return true; // TODO: calc me
return this.words.length === 12;
}

async create() {
Expand All @@ -37,7 +37,7 @@ export default class Phrase {

// -------------

private input = new InputHandler();
input = new InputHandler();

get inputValue() {
return this.input.value;
Expand Down

0 comments on commit 3b48028

Please sign in to comment.