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) {
|
||||
const error = nativeError as AxiosError;
|
||||
|
||||
if (window.location.hostname !== 'localhost') selectSendingMethod({
|
||||
messageField: `status: ${error.response?.status}. Message ${(error.response?.data as ExtendedAxiosResponse)?.message}`,
|
||||
isSnackbar: false,
|
||||
systemError: true
|
||||
});
|
||||
// if (window.location.hostname !== 'localhost') selectSendingMethod({
|
||||
// messageField: `status: ${error.response?.status}. Message ${(error.response?.data as ExtendedAxiosResponse)?.message}`,
|
||||
// isSnackbar: false,
|
||||
// systemError: true
|
||||
// });
|
||||
if (
|
||||
error.response?.status === 400 &&
|
||||
(error.response?.data as ExtendedAxiosResponse)?.message ===
|
||||
|
@ -38,10 +38,10 @@ async function sendErrorsToServer() {
|
||||
// body: errorsQueue,
|
||||
// useToken: true,
|
||||
// });
|
||||
selectSendingMethod({
|
||||
messageField: `Fake-sending ${errorsQueue.length} errors to server ${JSON.stringify(errorsQueue)}`,
|
||||
isSnackbar: false,
|
||||
systemError: true
|
||||
});
|
||||
// selectSendingMethod({
|
||||
// messageField: `Fake-sending ${errorsQueue.length} errors to server ${JSON.stringify(errorsQueue)}`,
|
||||
// isSnackbar: false,
|
||||
// systemError: true
|
||||
// });
|
||||
// errorsQueue = [];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user