Skip to content

Commit

Permalink
Merge pull request #9022 from AugurProject/fix-weird-sim-trade-error
Browse files Browse the repository at this point in the history
dont run sim trade if user isn't logged in
  • Loading branch information
mergify[bot] authored Aug 14, 2020
2 parents 97b02a9 + d902214 commit db5c9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/augur-sdk/src/api/ZeroX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ export class ZeroX {
: false;
if (orders.length < 1 && !params.doNotCreateOrders) {
simulationData = await this.simulateMakeOrder(onChainTradeParams);
} else if (orders.length < 1) {
} else if (orders.length < 1 || !params.takerAddress) {
return {
sharesFilled: new BigNumber(0),
tokensDepleted: new BigNumber(0),
Expand Down

0 comments on commit db5c9de

Please sign in to comment.