Skip to content

Commit

Permalink
fix bag if
Browse files Browse the repository at this point in the history
  • Loading branch information
HomerSimpsonj committed Dec 18, 2024
1 parent aae2908 commit 378aa60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ const checksDurationMeeting = (startWorks, endWorks, startMeeting, durationMeeti
const durationMeetingNumber = +`${durationMeetingHour}.${durationMeetingMin}`;
const endMeeting = startMeetingNumber + durationMeetingNumber;

if(startWorksNumber <= endMeeting && endtWorksNumber >= endMeeting) {
if(startWorksNumber <= startMeetingNumber && endtWorksNumber >= endMeeting) {
return true;
}
return false;
};

console.log(checksDurationMeeting('08:00', '17:30', '14:00', 90));
checksDurationMeeting('08:00', '17:30', '14:00', 90);

0 comments on commit 378aa60

Please sign in to comment.