cut send system true
This commit is contained in:
parent
459553056d
commit
cf1fce88cb
@ -33,11 +33,11 @@ export const makeRequest = async <TRequest = unknown, TResponse = unknown>(
|
|||||||
} catch (nativeError) {
|
} catch (nativeError) {
|
||||||
const error = nativeError as AxiosError;
|
const error = nativeError as AxiosError;
|
||||||
|
|
||||||
if (window.location.hostname !== 'localhost') selectSendingMethod({
|
// if (window.location.hostname !== 'localhost') selectSendingMethod({
|
||||||
messageField: `status: ${error.response?.status}. Message ${(error.response?.data as ExtendedAxiosResponse)?.message}`,
|
// messageField: `status: ${error.response?.status}. Message ${(error.response?.data as ExtendedAxiosResponse)?.message}`,
|
||||||
isSnackbar: false,
|
// isSnackbar: false,
|
||||||
systemError: true
|
// systemError: true
|
||||||
});
|
// });
|
||||||
if (
|
if (
|
||||||
error.response?.status === 400 &&
|
error.response?.status === 400 &&
|
||||||
(error.response?.data as ExtendedAxiosResponse)?.message ===
|
(error.response?.data as ExtendedAxiosResponse)?.message ===
|
||||||
|
@ -38,10 +38,10 @@ async function sendErrorsToServer() {
|
|||||||
// body: errorsQueue,
|
// body: errorsQueue,
|
||||||
// useToken: true,
|
// useToken: true,
|
||||||
// });
|
// });
|
||||||
selectSendingMethod({
|
// selectSendingMethod({
|
||||||
messageField: `Fake-sending ${errorsQueue.length} errors to server ${JSON.stringify(errorsQueue)}`,
|
// messageField: `Fake-sending ${errorsQueue.length} errors to server ${JSON.stringify(errorsQueue)}`,
|
||||||
isSnackbar: false,
|
// isSnackbar: false,
|
||||||
systemError: true
|
// systemError: true
|
||||||
});
|
// });
|
||||||
// errorsQueue = [];
|
// errorsQueue = [];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user