From 72a00ac2df47ff793d74c2a82c7f403f501e784a Mon Sep 17 00:00:00 2001
From: Fabio Berger <me@fabioberger.com>
Date: Tue, 28 Nov 2017 15:11:04 -0600
Subject: Refactor the topLevel documentation react components for 0x.js and
 Smart contracts into a single component

---
 packages/website/ts/lazy_component.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'packages/website/ts/lazy_component.tsx')

diff --git a/packages/website/ts/lazy_component.tsx b/packages/website/ts/lazy_component.tsx
index 1dfe4db95..359a1fe65 100644
--- a/packages/website/ts/lazy_component.tsx
+++ b/packages/website/ts/lazy_component.tsx
@@ -56,6 +56,9 @@ export const createLazyComponent = (componentName: string, lazyImport: () => Pro
         const reactComponentPromise = (async (): Promise<React.ComponentClass<any>> => {
             const mod = await lazyImport();
             const component = mod[componentName];
+            if (_.isUndefined(component)) {
+                throw new Error(`Did not find exported component: ${componentName}`);
+            }
             return component;
         })();
         return (
-- 
cgit v1.2.3

