Skip to content

Commit 85e944c

Browse files
authored
Don't increment the attempt counter if the attempt was ratelimited (#108)
* Don't increment the attempt counter if the attempt was ratelimited * Run yarn build
1 parent 2af3ec8 commit 85e944c

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

assets/js/challenges.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,11 @@ Alpine.data("Challenge", () => ({
184184
}
185185

186186
// Increment attempts counter
187-
if (this.max_attempts > 0 && this.response.data.status != "already_solved") {
187+
if (
188+
this.max_attempts > 0 &&
189+
this.response.data.status != "already_solved" &&
190+
this.response.data.status != "ratelimited"
191+
) {
188192
this.attempts += 1;
189193
}
190194

static/assets/challenges.554fe8bb.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/assets/challenges.fe685e10.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

static/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
]
3131
},
3232
"assets/js/challenges.js": {
33-
"file": "assets/challenges.fe685e10.js",
33+
"file": "assets/challenges.554fe8bb.js",
3434
"src": "assets/js/challenges.js",
3535
"isEntry": true,
3636
"imports": [

0 commit comments

Comments
 (0)