diff --git a/package.json b/package.json index ddcce3a..2b6da83 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lawn-mowing-scheduler", "private": true, - "version": "0.4.1", + "version": "0.4.2", "type": "module", "scripts": { "dev": "concurrently \"npm run server\" \"npm run client\"", diff --git a/src/components/ZoneCard.tsx b/src/components/ZoneCard.tsx index 33c39d8..14d0305 100644 --- a/src/components/ZoneCard.tsx +++ b/src/components/ZoneCard.tsx @@ -33,6 +33,7 @@ const ZoneCard: React.FC = ({ }; const getStatusText = (zone: Zone) => { + console.log(zone); if (zone.isNew) { return 'Еще не косилась'; } else if (zone.isOverdue) { diff --git a/src/services/api.ts b/src/services/api.ts index 74ec4a3..604ecb1 100644 --- a/src/services/api.ts +++ b/src/services/api.ts @@ -6,8 +6,8 @@ const API_BASE = APP_MODE == "development" ? new URL('api', import.meta.env.VITE export const api = { async getZones(): Promise { const response = await fetch(`${API_BASE}/zones`); - console.log(`${APP_MODE}`); - console.log(`${API_BASE}/zones`); + //console.log(`${APP_MODE}`); + //console.log(`${API_BASE}/zones`); if (!response.ok) throw new Error('Failed to fetch zones'); return response.json(); },