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 (#12922)
  • Loading branch information
shafin-deriv authored 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

1 comment on commit 2e05635

@vercel
Copy link

@vercel vercel bot commented on 2e05635 Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

binary.sx
deriv-app.vercel.app
deriv-app.binary.sx
deriv-app-git-master.binary.sx

Please sign in to comment.