mirror of
https://github.com/mue/mue.git
synced 2026-07-16 21:44:22 +02:00
misc: appropriate log type, ternary operator to prevent errors
This commit is contained in:
@@ -22,7 +22,7 @@ class ErrorBoundary extends PureComponent {
|
||||
* @returns An object with two properties: error and errorData.
|
||||
*/
|
||||
static getDerivedStateFromError(error) {
|
||||
console.log(error);
|
||||
console.error(error);
|
||||
variables.stats.postEvent('modal', 'Error occurred');
|
||||
return {
|
||||
error: true,
|
||||
|
||||
Reference in New Issue
Block a user