Skip to content

Commit

Permalink
don't allow contest_entry to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Jan 26, 2024
1 parent 66c3ab6 commit 361ce23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/components/basic-select-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class BasicSelectOptions extends React.PureComponent<Props> {
private href(id: number | null) {
switch (this.props.type) {
case 'judge_results':
return route('contest-entries.judge-results', { contest_entry: id });
return route('contest-entries.judge-results', { contest_entry: id ?? 0 });
case 'multiplayer':
return route('multiplayer.rooms.show', { room: id ?? 'latest' });
case 'seasons':
Expand Down

0 comments on commit 361ce23

Please sign in to comment.