Set orderDate to orderDateInput

This commit is contained in:
2026-01-04 23:31:13 +03:00
parent 91f18a6a9a
commit 5d066c96c9
2 changed files with 3 additions and 7 deletions

View File

@@ -415,9 +415,7 @@ async function refreshData() {
currentDateEl.textContent = currentDate;
orderDateInput.min = currentDate;
if (!orderDateInput.value) {
orderDateInput.value = currentDate;
}
orderDateInput.value = currentDate
renderInventory();
renderOrders();
@@ -444,9 +442,7 @@ function initializeApp() {
currentDate = initialDate;
currentDateEl.textContent = initialDate;
orderDateInput.min = initialDate;
if (!orderDateInput.value) {
orderDateInput.value = initialDate;
}
orderDateInput.value = initialDate;
orderForm.addEventListener('submit', async (event) => {
event.preventDefault();