Skip to content

Commit

Permalink
Merge pull request #136 from maryia-matskevich-deriv/maryia/GRWT-2382
Browse files Browse the repository at this point in the history
maryia/fix: Run panel animation result does not match contact result on win/loss
  • Loading branch information
shafin-deriv authored Nov 25, 2024
2 parents f769123 + 7ff9e9d commit a5a0dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/summary-card-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a5a0dae

Please sign in to comment.