Explorar el Código

homework15 homework16 update done

holevchuk.evgeny hace 1 año
padre
commit
ab581a55c5
Se han modificado 2 ficheros con 2 adiciones y 6 borrados
  1. 1 3
      hw15/getGQL.js
  2. 1 3
      hw16/getGQL_error.js

+ 1 - 3
hw15/getGQL.js

@@ -49,9 +49,7 @@ const checkAuthToken = () => {
 			"Authorization": `Bearer ${localStorage.getItem('authToken')}`
 		}
 	} else {
-		return {
-			headers
-		}
+		return headers
 	}
 }
 

+ 1 - 3
hw16/getGQL_error.js

@@ -49,9 +49,7 @@ const checkAuthToken = () => {
 			"Authorization": `Bearer ${localStorage.getItem('authToken')}`
 		}
 	} else {
-		return {
-			headers
-		}
+		return headers
 	}
 }