Add no-console eslint rule (#1890)

* Add no-console eslint rule

* Remove unused test
This commit is contained in:
Charles Bochet
2023-10-05 21:16:02 +02:00
committed by GitHub
parent 922f8eca0e
commit 07450df1a1
24 changed files with 69 additions and 212 deletions

View File

@ -8,6 +8,7 @@ import { EntityForSelect } from '@/ui/input/relation-picker/types/EntityForSelec
import { RelationPickerHotkeyScope } from '@/ui/input/relation-picker/types/RelationPickerHotkeyScope';
import { useSnackBar } from '@/ui/snack-bar/hooks/useSnackBar';
import { ViewBarDropdownButton } from '@/ui/view-bar/components/ViewBarDropdownButton';
import { logError } from '~/utils/logError';
export const PipelineAddButton = () => {
const { enqueueSnackBar } = useSnackBar();
@ -30,9 +31,7 @@ export const PipelineAddButton = () => {
},
);
console.error(
'There was a problem with the company selection, please retry.',
);
logError('There was a problem with the company selection, please retry.');
return;
}
@ -44,7 +43,7 @@ export const PipelineAddButton = () => {
},
);
console.error('There was a problem with the pipeline stage selection.');
logError('There was a problem with the pipeline stage selection.');
return;
}
closeDropdown();