Emoji picker bug fix

This commit is contained in:
2021-12-28 12:00:40 -03:00
parent c4bce522e9
commit 0ec2dd8d53
3 changed files with 4 additions and 1 deletions

View File

@@ -2,5 +2,5 @@ export default function addStartButtonFunctionality(game) {
const button = document.getElementById('start')
button.addEventListener('click', game)
button.addEventListener('click', () => game(false, false))
}

View File

@@ -8,6 +8,7 @@ export default function gameLogic(checkInputsResult, replay) {
function Player(position) {
console.log(replay)
console.log(checkInputsResult)
if (replay) {

View File

@@ -32,6 +32,8 @@ function main(game) {
function game(checkInputsResult, replay) {
console.log(checkInputsResult)
if (!checkInputsResult) {
checkInputsResult = checkInputs()