diff --git a/app/login.tsx b/app/login.tsx index e5ab132..dfe2433 100644 --- a/app/login.tsx +++ b/app/login.tsx @@ -24,13 +24,10 @@ export default function LoginScreen() { setIsLoading(true); try { - username.trim(); - password.trim(); - // Execute login request const response = await api.post("/user/login", { - username: username, - password: password + username: username.trim(), + password: password.trim() }); if (response.data && response.data.success === false) { diff --git a/components/CalendarWidget.tsx b/components/CalendarWidget.tsx index a5a9f13..8317944 100644 --- a/components/CalendarWidget.tsx +++ b/components/CalendarWidget.tsx @@ -82,10 +82,6 @@ export default function CalendarWidget({ events, types, onMonthChange, initialDa const day = i + 1; const event = getEventForDay(day); - let bgClass = 'bg-transparent'; - let textClass = 'text-gray-700'; - let borderClass = 'border-transparent'; - const bgColor = event?.timeOffRequestType?.color ? `${event.timeOffRequestType.color}25` : 'transparent'; const borderColor = event?.timeOffRequestType?.color || 'transparent'; const textColor = event ? event.timeOffRequestType?.color : '#374151'; diff --git a/components/MachineFilter.tsx b/components/MachineFilter.tsx index 5cb2e92..6b87162 100644 --- a/components/MachineFilter.tsx +++ b/components/MachineFilter.tsx @@ -89,7 +89,7 @@ export default function MachineFilter({ selectedMachineId, onMachineSelect, text )} - {/* Nested Place Picker Modal */} + {/* Nested Machine Picker Modal */} setShowPicker(false)}> - {/* Nested Place Picker Modal */} + {/* Nested Supplier Picker Modal */} setShowPicker(false)}>