commit | 9babd7568c234d0596e126abf0ce88b46f38e58f | [log] [tgz] |
---|---|---|
author | pineafan <pineapplefanyt@gmail.com> | Fri Oct 21 21:47:52 2022 +0100 |
committer | pineafan <pineapplefanyt@gmail.com> | Fri Oct 21 21:47:52 2022 +0100 |
tree | 6ec1780c070de1a39c1d4219207f8c307fb70aa7 | |
parent | d1fda29bc975dffe582322aa57352e777c9b5ce2 [diff] [blame] |
Started to do animations | DO NOT USE IN PROD
diff --git a/Components/Header.js b/Components/Header.js index 7e96ba6..ff46351 100644 --- a/Components/Header.js +++ b/Components/Header.js
@@ -32,7 +32,7 @@ function confetti() { if (!isAnimating && !isDisappointmentAnimating && props.index) { setClickTotal(clickTotal + 1); - if (clickTotal > 0 && Math.floor(Math.random() * 3) == 0) { + if (clickTotal > 0 && Math.floor(Math.random() * 3) === 0) { disappointment(); } else { reward();