Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evgeniy 87957 max stake validation is missing #81

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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