Skip to content

Commit 3fe62d8

Browse files
committed
try2
1 parent 9d2c488 commit 3fe62d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

soundboxBooking.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,17 @@ async function getRegisted(){
5757
}
5858
async function fetchData() {
5959
const selectedDate = document.getElementById('startDate').value;
60-
console.log(selectedDate);
6160

6261
if (!selectedDate) {
6362
alert("Please select a date.");
6463
return;
6564
}
65+
selectedBlocks=[];
6666

6767
const data = await fetchSoundboxState(selectedDate);
6868
const registed = await getRegisted();
6969

7070
let registedToday=[]
71-
let today = new Date();
7271
for(i=0;i<registed.length;i++){
7372
if (registed[i][2]==selectedDate.replaceAll("-","")){
7473
registedToday.push((registed[i][0],registed[i][1]));

0 commit comments

Comments
 (0)