From 6a9f10cd36e254bfb43f13e5728b5346823b5cfa Mon Sep 17 00:00:00 2001
From: Fabio Berger <me@fabioberger.com>
Date: Thu, 23 Nov 2017 13:57:01 -0600
Subject: Add error when unexpected condition hit

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

(limited to 'packages/website/ts/components/trade_history/trade_history_item.tsx')

diff --git a/packages/website/ts/components/trade_history/trade_history_item.tsx b/packages/website/ts/components/trade_history/trade_history_item.tsx
index 96b755e3c..58bdf84ae 100644
--- a/packages/website/ts/components/trade_history/trade_history_item.tsx
+++ b/packages/website/ts/components/trade_history/trade_history_item.tsx
@@ -122,6 +122,9 @@ export class TradeHistoryItem extends React.Component<TradeHistoryItemProps, Tra
             givenAmount = fill.filledTakerTokenAmount;
             receiveToken = makerToken;
             givenToken = takerToken;
+        } else {
+            // This condition should never be hit
+            throw new Error('Found Fill that wasn\'t performed by this user');
         }
 
         return (
-- 
cgit v1.2.3

