Skip to content

Commit

Permalink
fix: add await
Browse files Browse the repository at this point in the history
  • Loading branch information
Turtle-Hwan committed Nov 4, 2024
1 parent d089476 commit 7a221c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LottoVendingMachine from "./LottoVendingMachine.js";
class App {
async run() {
const LottoVM = new LottoVendingMachine();
LottoVM.run();
await LottoVM.run();
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/LottoVendingMachine.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ class LottoVendingMachine {
}

printIssueLottosInfo() {
Console.print("");
Console.print(MESSAGES.OUTPUT.PURCHASE_LOTTO_NUMBER(this.#lottoAmount));
this.#lottos.forEach((lotto) => Console.print(lotto));
this.#lottos.forEach((lotto) => Console.print(`[${lotto.join(", ")}]`));
}

async winNumbersInput() {
Expand Down

0 comments on commit 7a221c3

Please sign in to comment.