@@ -402,6 +402,12 @@ store.subscribe(() => {
table.append(tr2)
main.append(h, table)
}
+ else if (!promise?.orderfind?.payload && route === 'orders'){
+ main.innerHTML = ''
+ let h = document.createElement('h1')
+ h.textContent = 'У вас ещё нет заказов';
+ main.append(h)
+ }
})
window.onhashchange = () => {