diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-08 04:53:14 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-12-08 04:53:14 +0800 |
commit | f1ecdcf6029debbd2183511080b302a4fccc6703 (patch) | |
tree | cd3870de57bc5af02391c9ccf412afa4bcf25b64 /packages | |
parent | 1eaefac12b4911a0a54a7b822be61a9c35d1452e (diff) | |
download | dexon-0x-contracts-f1ecdcf6029debbd2183511080b302a4fccc6703.tar dexon-0x-contracts-f1ecdcf6029debbd2183511080b302a4fccc6703.tar.gz dexon-0x-contracts-f1ecdcf6029debbd2183511080b302a4fccc6703.tar.bz2 dexon-0x-contracts-f1ecdcf6029debbd2183511080b302a4fccc6703.tar.lz dexon-0x-contracts-f1ecdcf6029debbd2183511080b302a4fccc6703.tar.xz dexon-0x-contracts-f1ecdcf6029debbd2183511080b302a4fccc6703.tar.zst dexon-0x-contracts-f1ecdcf6029debbd2183511080b302a4fccc6703.zip |
Make sure we don't pass empty maker into getOrderHashHex
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/components/inputs/hash_input.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/website/ts/components/inputs/hash_input.tsx b/packages/website/ts/components/inputs/hash_input.tsx index 7fadc3c15..25e7b5009 100644 --- a/packages/website/ts/components/inputs/hash_input.tsx +++ b/packages/website/ts/components/inputs/hash_input.tsx @@ -1,4 +1,5 @@ import {Order, ZeroEx} from '0x.js'; +import * as _ from 'lodash'; import * as React from 'react'; import ReactTooltip = require('react-tooltip'); import {Blockchain} from 'ts/blockchain'; @@ -49,7 +50,7 @@ export class HashInput extends React.Component<HashInputProps, HashInputState> { exchangeContractAddress, expirationUnixTimestampSec: hashData.orderExpiryTimestamp, feeRecipient: hashData.feeRecipientAddress, - maker: hashData.orderMakerAddress, + maker: _.isEmpty(hashData.orderMakerAddress) ? constants.NULL_ADDRESS : hashData.orderMakerAddress, makerFee: hashData.makerFee, makerTokenAddress: hashData.depositTokenContractAddr, makerTokenAmount: hashData.depositAmount, |