Skip to content

Commit

Permalink
fix: Run panel animation result does not match contact result on win/…
Browse files Browse the repository at this point in the history
…loss (deriv-com#17627)
  • Loading branch information
maryia-matskevich-deriv authored Nov 27, 2024
1 parent 6d72c76 commit d0f37c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bot-web-ui/src/stores/summary-card-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d0f37c7

Please sign in to comment.