Skip to content

Commit

Permalink
#6 Fixed missing stoploss check
Browse files Browse the repository at this point in the history
  • Loading branch information
Effanuel committed Feb 5, 2020
1 parent d16eb67 commit f38d6d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/redux/modules/preview/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ export const postOrder = (payload: any): Thunk => async dispatch => {
try {
dispatch(postOrderLoading());
let orders = orderBulk(payload);
orders.orders.push(orders.stop);

if (payload.stop && payload.stop !== "") {
orders.orders.push(orders.stop);
}
console.log("order");

const response = await axios.post("/bitmex/postOrder", orders);
Expand Down

0 comments on commit f38d6d7

Please sign in to comment.