Skip to content

Commit a3e1882

Browse files
authored
Fix type for upgraded Axios library (#323)
Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
1 parent c6692da commit a3e1882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/tornjak-api-helpers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type TornjakApiState = {}
2525

2626
if (Auth_Server_Uri) { // inject token if app is in auth mode and check token status/ refresh as needed
2727
axios.interceptors.request.use(
28-
config => {
28+
async (config: any): Promise<any> => {
2929
console.log("Checking token status...")
3030
if (KeycloakService.isLoggedIn()) {
3131
const setAuthorization = () => {

0 commit comments

Comments
 (0)