Add error when unexpected condition hit
This commit is contained in:
parent
e7a4e03194
commit
6a9f10cd36
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user