Skip to content

Commit

Permalink
fix: sets the contract language whenever there is a change (#7996)
Browse files Browse the repository at this point in the history
* fix: sets the contract language whenever there is a change

* fix: issue with popup disappearing

* fix: translate amount tooltip

---------

Co-authored-by: Jim Daniels Wasswa <104334373+jim-deriv@users.noreply.github.com>
  • Loading branch information
aizad-deriv and jim-deriv committed Apr 5, 2023
1 parent ccfd592 commit d823a5a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/trader/src/Stores/Modules/Trading/trade-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,13 @@ export default class TradeStore extends BaseStore {
this.resetAccumulatorData();
}
);
reaction(
() => this.root_store.common.is_language_changing,
() => {
this.setValidationRules(getValidationRules());
this.changeDurationValidationRules();
}
);
when(
() => this.accumulator_range_list.length,
() => this.setDefaultGrowthRate()
Expand Down

1 comment on commit d823a5a

@vercel
Copy link

@vercel vercel bot commented on d823a5a Apr 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.vercel.app
deriv-app.binary.sx
binary.sx
deriv-app-git-master.binary.sx

Please sign in to comment.