Add error when unexpected condition hit

This commit is contained in:
Fabio Berger 2017-11-23 13:57:01 -06:00
parent e7a4e03194
commit 6a9f10cd36

View File

@ -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 (