Skip to content

Commit

Permalink
sdsdsdsd
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurgolo committed Mar 2, 2024
1 parent cde39dc commit 51ecdda
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pages/teamdetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,13 @@ document.getElementById("teaminfoform").addEventListener("submit", function(even
const scores2amp = document.getElementById('scores2amp').checked;
const scores2speaker = document.getElementById('scores2speaker').checked;

const preferredScoringMethod = document.querySelector('input[name="score"]:checked').value;
const preferredIntakeMethod = document.querySelector('input[name="intake"]:checked').value;
//need to handle if no radio button is selected
const preferredScoringMethodElement = document.querySelector('input[name="score"]:checked');
const preferredScoringMethod = preferredScoringMethodElement ? preferredScoringMethodElement.value : undefined;

//need to handle if no radio button is selected
const preferredIntakeMethodElement = document.querySelector('input[name="score"]:checked');
const preferredIntakeMethod = preferredIntakeMethodElement ? preferredIntakeMethodElement.value : undefined;

const prefintake = document.getElementById('prefintake').value;

Expand Down

0 comments on commit 51ecdda

Please sign in to comment.