Skip to content

Commit 2e05635

Browse files
authored
chore: add purchase condition value directly under purchase condition block from qs (deriv-com#12922)
1 parent 2da646a commit 2e05635

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/bot-web-ui/src/stores/quick-strategy-store.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,16 @@ export default class QuickStrategyStore implements IQuickStrategyStore {
157157
el_block.innerHTML = value;
158158
});
159159
};
160-
const { unit, action, ...rest_data } = data;
160+
const { unit, action, type, ...rest_data } = data;
161161
const fields_to_update = {
162162
market,
163163
submarket,
164164
tradetypecat: trade_type_cat,
165165
dalembert_unit: unit,
166166
oscar_unit: unit,
167+
type: 'both',
167168
...rest_data,
169+
purchase: type,
168170
};
169171

170172
Object.keys(fields_to_update).forEach(key => {

0 commit comments

Comments
 (0)