Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hint Pop-up for Single Digit to be removed #5

Open
KevinGeejo opened this issue Dec 18, 2023 · 2 comments
Open

Hint Pop-up for Single Digit to be removed #5

KevinGeejo opened this issue Dec 18, 2023 · 2 comments

Comments

@KevinGeejo
Copy link

KevinGeejo commented Dec 18, 2023

The Hint Pop-up for input of a single digit should not pop up, as there is nothing to add.

if (sum === 7) {
    showCongratulations(tabName);
} else {
    showAlert('Try again!', tabName);
    showAlert('hint: addition of numbers', tabName);
}
@ankitkat042
Copy link
Owner

Yeah, I did it quite hastily. My initial thought was that it would show 'Try again \n Hint: addition of numbers,' but only the second alert got displayed. Can you add an exception for single numbers to not show the addition hint and only display 'Try again'?

@KevinGeejo
Copy link
Author

Okay I'll add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants