Log error from error box if any

This commit is contained in:
Tom Russell 2018-09-30 20:30:04 +01:00
parent 11e93a18b3
commit c3e539cd81

View File

@ -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>
{ {