Render hero top bar only if there is an event on that day

This commit is contained in:
Helen Chong 2024-04-16 00:12:49 +08:00
parent c1e560b94a
commit a045b39428
1 changed files with 1 additions and 3 deletions

View File

@ -46,9 +46,7 @@
headerImgEl.classList.add(getBanner(todayEvent)); headerImgEl.classList.add(getBanner(todayEvent));
headerTopBarEl.innerHTML = getBlurbHtml(todayEvent); headerTopBarEl.innerHTML = getBlurbHtml(todayEvent);
} }
} else { }
headerTopBarEl.textContent = "Welcome to Leilukin's Hub!";
};
function getTodayEvent() { function getTodayEvent() {
const date = new Date(); const date = new Date();