Browse Source

homework15 homework16 update done

holevchuk.evgeny 1 year ago
parent
commit
ab581a55c5
2 changed files with 2 additions and 6 deletions
  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
 	}
 }