Skip to content

Commit

Permalink
chore: fix error rules delay on amount (#8206)
Browse files Browse the repository at this point in the history
* chore: fix error rules delay on amount

* fix: delay in error message on amount and the rest of the fields

* fix: readded accidental deleted functions
  • Loading branch information
aizad-deriv committed May 12, 2023
1 parent 2cb2fe0 commit 3bc96cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/trader/src/Stores/Modules/Trading/trade-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,13 @@ export default class TradeStore extends BaseStore {
}
);
reaction(
() => this.root_store.common.is_language_changing,
() => this.root_store.common.current_language,
() => {
this.setValidationRules(getValidationRules());
this.changeDurationValidationRules();
if (!this.amount) {
this.setValidationRules(getValidationRules());
this.changeDurationValidationRules();
this.validateAllProperties();
}
}
);
when(
Expand Down

1 comment on commit 3bc96cb

@vercel
Copy link

@vercel vercel bot commented on 3bc96cb May 12, 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 – ./

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

Please sign in to comment.