diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-24 03:57:01 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-24 03:57:01 +0800 |
commit | 6a9f10cd36e254bfb43f13e5728b5346823b5cfa (patch) | |
tree | c99a3780cf7db36115e7f96c528b58f06fa33a9d /packages/website | |
parent | e7a4e031947411535911db125148daee5fd6672d (diff) | |
download | dexon-sol-tools-6a9f10cd36e254bfb43f13e5728b5346823b5cfa.tar.gz dexon-sol-tools-6a9f10cd36e254bfb43f13e5728b5346823b5cfa.tar.zst dexon-sol-tools-6a9f10cd36e254bfb43f13e5728b5346823b5cfa.zip |
Add error when unexpected condition hit
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/components/trade_history/trade_history_item.tsx | 3 |
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 ( |