Skip to content

Commit

Permalink
fix: max stake validation is missing (#81)
Browse files Browse the repository at this point in the history
Co-authored-by: “yauheni-kryzhyk-deriv” <“yauheni@deriv.me”>
  • Loading branch information
yauheni-deriv and “yauheni-kryzhyk-deriv” committed Feb 8, 2023
1 parent 24e332d commit 7504d13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/Stores/contract-trade-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default class ContractTradeStore extends BaseStore {
};

get should_highlight_current_spot() {
return (
return !!(
this.current_symbol_spot &&
this.accumulators_high_barrier &&
this.accumulators_low_barrier &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Purchase = ({
const info = proposal_info[type] || {};
const is_disabled = !is_trade_enabled || !info.id || !is_purchase_enabled;
const is_proposal_error =
is_multiplier || (is_accumulator && !is_mobile) ? info.has_error && info.has_error_details : info.has_error;
is_multiplier || (is_accumulator && !is_mobile) ? info.has_error && !!info.message : info.has_error;
const purchase_fieldset = (
<PurchaseFieldset
basis={basis}
Expand Down

0 comments on commit 7504d13

Please sign in to comment.