Skip to content

Commit

Permalink
Removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Nov 26, 2020
1 parent 2c54ceb commit 8d9bd0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/components/theme/View/DefaultView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ const DefaultView = ({

useEffect(() => {
setMounted(true);
console.log('MOUNTED');
return () => {
console.log('UNMOUNTED');
setMounted(false);
};
}, []);
Expand Down
16 changes: 8 additions & 8 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import {
import { installDiscodataBlocks } from 'volto-datablocks';
import { applyConfig as eprtrConfig } from './localconfig';

const consoleError = console.error.bind(console);
// eslint-disable-next-line
console.error = (message, ...args) => {
if (typeof message === 'string' && message.startsWith('[React Intl]')) {
return;
}
consoleError(message, ...args);
};
// const consoleError = console.error.bind(console);
// // eslint-disable-next-line
// console.error = (message, ...args) => {
// if (typeof message === 'string' && message.startsWith('[React Intl]')) {
// return;
// }
// consoleError(message, ...args);
// };

const addonConfig = [
installTableau,
Expand Down

0 comments on commit 8d9bd0b

Please sign in to comment.