diff --git a/.env b/.env index 9c07060..5053a46 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -VITE_API_URL=http://192.168.1.170:3000 \ No newline at end of file +VITE_API_URL=http://192.168.1.204:3000 \ No newline at end of file diff --git a/src/components/TableSelector.tsx b/src/components/TableSelector.tsx index 49d5690..40c138b 100644 --- a/src/components/TableSelector.tsx +++ b/src/components/TableSelector.tsx @@ -13,6 +13,7 @@ function TableSelector({ selectedTable, onSelect, }: TableSelectorProps) { + console.log(tables); return (
{table.name}
{table.status === "offline" ? (Недоступен
- ) : table.sessions?.[0].status === "ended" ? ( -Свободен
- ) : ( + ) : table.sessions && + table.sessions.length > 0 && + table.sessions[0].status !== "ended" ? (Идет сеанс
Свободен
)} ))}