cut send system true
All checks were successful
Deploy / CreateImage (push) Successful in 5m28s
Deploy / DeployService (push) Successful in 22s

This commit is contained in:
Nastya 2025-04-03 22:22:15 +03:00
parent 459553056d
commit cf1fce88cb
2 changed files with 10 additions and 10 deletions

@ -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 = [];
}