aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-24 03:57:01 +0800
committerFabio Berger <me@fabioberger.com>2017-11-24 03:57:01 +0800
commit6a9f10cd36e254bfb43f13e5728b5346823b5cfa (patch)
treec99a3780cf7db36115e7f96c528b58f06fa33a9d /packages
parente7a4e031947411535911db125148daee5fd6672d (diff)
downloaddexon-sol-tools-6a9f10cd36e254bfb43f13e5728b5346823b5cfa.tar
dexon-sol-tools-6a9f10cd36e254bfb43f13e5728b5346823b5cfa.tar.gz
dexon-sol-tools-6a9f10cd36e254bfb43f13e5728b5346823b5cfa.tar.bz2
dexon-sol-tools-6a9f10cd36e254bfb43f13e5728b5346823b5cfa.tar.lz
dexon-sol-tools-6a9f10cd36e254bfb43f13e5728b5346823b5cfa.tar.xz
dexon-sol-tools-6a9f10cd36e254bfb43f13e5728b5346823b5cfa.tar.zst
dexon-sol-tools-6a9f10cd36e254bfb43f13e5728b5346823b5cfa.zip
Add error when unexpected condition hit
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/components/trade_history/trade_history_item.tsx3
1 files changed, 3 insertions, 0 deletions
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 (