Log error from error box if any
This commit is contained in:
parent
11e93a18b3
commit
c3e539cd81
@ -1,7 +1,9 @@
|
|||||||
import React, { Fragment } from 'react';
|
import React, { Fragment } from 'react';
|
||||||
|
|
||||||
function ErrorBox(props){
|
function ErrorBox(props){
|
||||||
console.error(props.msg);
|
if (props.msg) {
|
||||||
|
console.error(props.msg);
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user