Skip to content

Commit

Permalink
alphabetize
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Dec 11, 2023
1 parent 28c60c5 commit 980ff21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/js/contest-judge/entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ export default class Entry extends React.Component<Props> {

@action
private readonly handleRangeInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const value = Number(e.currentTarget.value);
const categoryId = Number(e.currentTarget.getAttribute('data-category-id'));
const value = Number(e.currentTarget.value);

const score = { contest_judge_category_id: categoryId, value };
const { scores } = this;

Expand All @@ -150,11 +151,11 @@ export default class Entry extends React.Component<Props> {
return (
<div className='contest-judge-entry-range-input'>
<input
data-category-id={category.id}
max={category.max_value}
onChange={this.handleRangeInputChange}
type='range'
value={initialValue}
data-category-id={category.id}
/>
</div>
);
Expand Down

0 comments on commit 980ff21

Please sign in to comment.