Skip to content

Commit

Permalink
chore: add purchase condition value directly under purchase condition…
Browse files Browse the repository at this point in the history
… block from qs (binary-com#12922)
  • Loading branch information
shafin-deriv committed Jan 29, 2024
1 parent 2da646a commit 2e05635
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bot-web-ui/src/stores/quick-strategy-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,16 @@ export default class QuickStrategyStore implements IQuickStrategyStore {
el_block.innerHTML = value;
});
};
const { unit, action, ...rest_data } = data;
const { unit, action, type, ...rest_data } = data;
const fields_to_update = {
market,
submarket,
tradetypecat: trade_type_cat,
dalembert_unit: unit,
oscar_unit: unit,
type: 'both',
...rest_data,
purchase: type,
};

Object.keys(fields_to_update).forEach(key => {
Expand Down

0 comments on commit 2e05635

Please sign in to comment.