From 7ff9e9d794c2b5844f3e8d8cf48da79b46212097 Mon Sep 17 00:00:00 2001 From: maryia-matskevich-deriv Date: Thu, 21 Nov 2024 16:06:03 +0300 Subject: [PATCH] fix: Run panel animation result does not match contact result on win/loss --- src/stores/summary-card-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/summary-card-store.ts b/src/stores/summary-card-store.ts index 39c89769..2ea3cbcd 100644 --- a/src/stores/summary-card-store.ts +++ b/src/stores/summary-card-store.ts @@ -157,11 +157,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; }