diff --git a/src/Contact.tsx b/src/Contact.tsx index 645f453..d18b3c3 100644 --- a/src/Contact.tsx +++ b/src/Contact.tsx @@ -15,7 +15,7 @@ class Contact extends React.Component { render() { if (this.props.contact === undefined) { - return (
Loading
); + throw Error('Contact should be defined!'); } const contact = this.props.contact;