Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 12e1232

Browse files
committed
Rename submitted data
1 parent 94d639d commit 12e1232

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assets/js/challenges.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Alpine.data("Challenge", () => ({
7878
hoveredRating: 0,
7979
selectedRating: 0,
8080
ratingReview: "",
81-
submitted: false,
81+
ratingSubmitted: false,
8282

8383
async init() {
8484
highlight();
@@ -235,7 +235,7 @@ Alpine.data("Challenge", () => ({
235235
);
236236
if (response.value) {
237237
this.ratingValue = this.selectedRating;
238-
this.submitted = true;
238+
this.ratingSubmitted = true;
239239
} else {
240240
alert("Error submitting rating");
241241
}

templates/challenge.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ <h3 class="challenge-value text-center">
268268
{% trans %}Submit{% endtrans %}
269269
</button>
270270
</div>
271-
<div x-show="submitted" class="text-success mt-2">
271+
<div x-show="ratingSubmitted" class="text-success mt-2">
272272
<small>{% trans %}Thank you for your rating!{% endtrans %}</small>
273273
</div>
274274
</div>

0 commit comments

Comments
 (0)