From d0f37c761836b5da0c03068d6fabb63419eb88ba Mon Sep 17 00:00:00 2001 From: maryia-matskevich-deriv <103181650+maryia-matskevich-deriv@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:49:01 +0300 Subject: [PATCH] fix: Run panel animation result does not match contact result on win/loss (#17627) --- packages/bot-web-ui/src/stores/summary-card-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bot-web-ui/src/stores/summary-card-store.ts b/packages/bot-web-ui/src/stores/summary-card-store.ts index 4f4a4ff4a196..3c190297f905 100644 --- a/packages/bot-web-ui/src/stores/summary-card-store.ts +++ b/packages/bot-web-ui/src/stores/summary-card-store.ts @@ -156,11 +156,11 @@ export default class SummaryCardStore { onBotContractEvent(contract: TContractInfo) { const { profit } = contract; const indicative = getIndicativePrice(contract as ProposalOpenContract); + this.profit = profit; if (this.contract_id !== contract.id) { this.clear(false); this.contract_id = contract.id; - this.profit = profit; this.indicative = indicative; }