Skip to content

Commit

Permalink
lint error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajithsimons committed Nov 21, 2023
1 parent e7b0bdd commit 8ddeb3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/HttpService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

import axios, { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';

import { setSnackbarMessage } from '../features/notifiication/slice';
import { store } from '../features/store';
Expand All @@ -40,9 +40,9 @@ abstract class HttpService {
(response: AxiosResponse) => {
return response;
},
async (error: AxiosError) => {
async error => {
// in order to get the error message from blob type response, it should be parsed
const errorMessage = JSON.parse(await error.response.data.text()).msg;
const errorMessage = await error.response.data.msg;
// Need to remove this store usage to avoid circlular dependecy issues
store.dispatch(
setSnackbarMessage({
Expand Down

0 comments on commit 8ddeb3b

Please sign in to comment.