Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
BaderSarah committed Jun 18, 2024
1 parent 7ded87b commit a5f6d62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CoursesComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default class CoursesComponent {
const inputUrgElOne = document.createElement("input");
inputUrgElOne.type = "radio";
inputUrgElOne.name = `option`;
inputUrgElOne.id = `urgencyH`;
inputUrgElOne.id = `urgency`;
inputUrgElOne.value = "high";
inputUrgElOne.className = "radioB";
const inputUrgElOneLbl = document.createElement("label");
Expand All @@ -153,7 +153,7 @@ export default class CoursesComponent {
const inputUrgElTwo = document.createElement("input");
inputUrgElTwo.type = "radio";
inputUrgElTwo.name = `option`;
inputUrgElTwo.id = `urgencyM`;
inputUrgElTwo.id = `urgency`;
inputUrgElTwo.value = "medium";
inputUrgElTwo.className = "radioB";
const inputUrgElTwoLbl = document.createElement("label");
Expand All @@ -164,7 +164,7 @@ export default class CoursesComponent {
// inputUrgElThree.name = `option_${course.name}`;
// inputUrgElThree.id = `urgencyL_${course.name}`;
inputUrgElThree.name = `option`;
inputUrgElThree.id = `urgencyL`;
inputUrgElThree.id = `urgency`;
inputUrgElThree.value = "low";
inputUrgElThree.className = "radioB";
const inputUrgElThreeLbl = document.createElement("label");
Expand Down Expand Up @@ -223,7 +223,7 @@ export default class CoursesComponent {
// const urgency = document.querySelector(`input[name="option_${course.name}"]:checked`).value;
const title = document.getElementById(`inputTitle`).value;
const time = document.getElementById(`inputTime`).value;
// const urgency = document.querySelector(`input[name="option_${course.name}"]:checked`).value;
const urgency = document.getElementById(`urgency`).value;

if (true) { // title && time && urgency
this.#coursesRepository.addToDoToCourse(course.name, title, time, "medium");
Expand Down

0 comments on commit a5f6d62

Please sign in to comment.