From d823a5aca6e7a2f6c20963705c92f0bd27431da5 Mon Sep 17 00:00:00 2001 From: Aizad Ridzo <103104395+aizad-deriv@users.noreply.github.com> Date: Wed, 5 Apr 2023 12:13:59 +0800 Subject: [PATCH] fix: sets the contract language whenever there is a change (#7996) * 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> --- packages/trader/src/Stores/Modules/Trading/trade-store.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/trader/src/Stores/Modules/Trading/trade-store.js b/packages/trader/src/Stores/Modules/Trading/trade-store.js index 39e4a87771a7..fef99279b3d8 100644 --- a/packages/trader/src/Stores/Modules/Trading/trade-store.js +++ b/packages/trader/src/Stores/Modules/Trading/trade-store.js @@ -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()