From 2e0563583d6ee0639fce4540846861892e032276 Mon Sep 17 00:00:00 2001 From: Shafin Al Karim <129021108+shafin-deriv@users.noreply.github.com> Date: Mon, 29 Jan 2024 15:53:47 +0800 Subject: [PATCH] chore: add purchase condition value directly under purchase condition block from qs (#12922) --- packages/bot-web-ui/src/stores/quick-strategy-store.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bot-web-ui/src/stores/quick-strategy-store.ts b/packages/bot-web-ui/src/stores/quick-strategy-store.ts index 8b1b2e3742be..d1c24ed75907 100644 --- a/packages/bot-web-ui/src/stores/quick-strategy-store.ts +++ b/packages/bot-web-ui/src/stores/quick-strategy-store.ts @@ -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 => {