Skip to content

Commit

Permalink
[frontend] Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Jan 17, 2025
1 parent bf21e5d commit ebb9601
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const ExerciseComponent = () => {
>
<Grid item xs={6} style={{ paddingTop: 10 }}>
<Typography variant="h4" gutterBottom>
{t(null)}
{t('Information')}
</Typography>
<ExerciseMainInformation exercise={exercise} />
</Grid>
Expand Down
8 changes: 1 addition & 7 deletions openbas-front/src/utils/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,5 @@ export const sendErrorToBackend = async (error: Error, stack: ErrorInfo) => {
timestamp: new Date().toISOString(),
level: 'ERROR',
};
simplePostCall('/api/logs', errorDetails)
.then((response) => {
notifySuccess('Error successfully sent to backend:' + response);
})
.catch((backendError) => {
notifyError(backendError);
});
simplePostCall('/api/logs', errorDetails);
};

0 comments on commit ebb9601

Please sign in to comment.