Alex il y a 2 ans
Parent
commit
6f7fa5d579
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      18/script.js

+ 6 - 0
18/script.js

@@ -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 = () => {