Skip to content

Commit

Permalink
Fixed alliance colour issue?
Browse files Browse the repository at this point in the history
  • Loading branch information
BenM-BenM committed Mar 8, 2024
1 parent a46ae0f commit d61d39d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/components/AddForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
match: (formType.name == "Pit Scouting") ? null : parseInt(match),
alliance: $matches[parseInt(match)]?.red_alliance.includes(parseInt(team))
? "RED"
: ($matches[parseInt(match)]?.red_alliance.includes(parseInt(team))
: ($matches[parseInt(match)]?.blue_alliance.includes(parseInt(team))
? "BLUE"
: "ERR")
};
console.log(match)
console.log($matches[parseInt(match)])
// console.log(`match: ${match}`)
// console.log(`matches[match]: ${$matches[parseInt(match)]}`)
// console.log(`red: ${$matches[parseInt(match)]?.red_alliance}`)
// console.log(`Blue: ${$matches[parseInt(match)]?.red_alliance}`)
$errors[id] = true;
match = "";
team = "";
Expand Down

0 comments on commit d61d39d

Please sign in to comment.