remove console.logs

This commit is contained in:
afazio1
2024-04-21 00:40:49 -04:00
parent 851443f19f
commit 09cc971466
2 changed files with 0 additions and 4 deletions

View File

@@ -38,10 +38,8 @@ const MainSearch: React.FC = () => {
headers: getAuthHeaders(),
});
const data = await response.json();
console.log("Professors fetched:", data);
if (Array.isArray(data)) {
console.log("Professors fetched:", data);
setProfessors(data);
} else {
console.error('Data fetched is not an array:', data);

View File

@@ -1,8 +1,6 @@
import { getSessionCookie } from "../contexts/session";
export const getAuthHeaders = () => {
const token = getSessionCookie();
// const token = localStorage.getItem('authToken');
console.log("Using token for API call:", token);
return {
'Authorization': `Token ${token}`,
'Content-Type': 'application/json'