Skip to content

Commit

Permalink
[frontend] Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Jan 10, 2025
1 parent f03ce00 commit 33e14a9
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 @@ -82,7 +82,7 @@ const Exercise = () => {
>
<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 @@ -218,11 +218,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 33e14a9

Please sign in to comment.