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

Commit

Permalink
Merge pull request #52 from Sports-day/feature/reschedule-without-jud…
Browse files Browse the repository at this point in the history
…gement

審判がない試合の追加
  • Loading branch information
testusuke authored May 21, 2024
2 parents 333af42 + c64fed0 commit ef0dde7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/automation/AutomaticMatchEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export function AutomaticMatchEditor(props: AutomaticMatchEditorProps) {
const rightTeam = teams.find(team => team.name === rightTeamName)
const judge = teams.find(team => team.name === judgeTeamName)
// if team not found
if (leftTeam === undefined || rightTeam === undefined || judge === undefined) {
if (leftTeam === undefined || rightTeam === undefined || (judgeTeamName !== "" && judge === undefined)) {
// failed
editedMatches.push({
id: -1,
Expand Down
2 changes: 1 addition & 1 deletion components/automation/CrossGameAutomaticMatchEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export function CrossGameAutomaticMatchEditor(props: CrossGameAutomaticMatchEdit
const judge = filteredEntries.find(team => team.name === judgeTeamName)

// if team not found
if (leftTeam === undefined || rightTeam === undefined || judge === undefined) {
if (leftTeam === undefined || rightTeam === undefined || (judgeTeamName !== "" && judge === undefined)) {
// failed
editedMatches.push({
id: -1,
Expand Down

0 comments on commit ef0dde7

Please sign in to comment.