aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-08-31 04:59:42 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-08-31 04:59:42 +0800
commit4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b (patch)
treeebe61b499946e94993f0d9b15c9ec00f937335d4 /packages/website/ts/components
parent971a4087d20d011adcef22555a49dc8600b55559 (diff)
downloaddexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar.gz
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar.bz2
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar.lz
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar.xz
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar.zst
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.zip
Remove cancel check
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r--packages/website/ts/components/fill_order.tsx5
1 files changed, 0 insertions, 5 deletions
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx
index f24d065f4..95f2039b3 100644
--- a/packages/website/ts/components/fill_order.tsx
+++ b/packages/website/ts/components/fill_order.tsx
@@ -606,11 +606,6 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> {
const orderHash = orderHashUtils.getOrderHashHex(signedOrder);
const unavailableTakerAmount = await this.props.blockchain.getUnavailableTakerAmountAsync(orderHash);
const availableTakerTokenAmount = takerTokenAmount.minus(unavailableTakerAmount);
- try {
- await this.props.blockchain.validateCancelOrderThrowIfInvalidAsync(signedOrder, availableTakerTokenAmount);
- } catch (err) {
- globalErrMsg = utils.zeroExErrToHumanReadableErrMsg(err.message, parsedOrder.signedOrder.takerAddress);
- }
if (!_.isEmpty(globalErrMsg)) {
this.setState({
isCancelling: false,