Skip to content

Commit

Permalink
Farabi/quick-strategy-initial-stake-issue (#11151)
Browse files Browse the repository at this point in the history
* fix: removed unit field

* fix: initial stake Nan issue and trade type style
  • Loading branch information
farabi-deriv committed Nov 3, 2023
1 parent c96924f commit c6e5f24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@
}

&__field {
font-weight: bold;
color: var(--text-general);
@include mobile {
text-align: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ const FormikWrapper: React.FC<TFormikWrapper> = observer(({ children }) => {
}
if (field.name === 'max_stake') {
min = +form_data?.stake;
if (isNaN(min)) {
min = +initial_value.stake;
}
min_error = getErrorMessage('MIN', min);
}
field.validation.forEach(validation => {
Expand Down

0 comments on commit c6e5f24

Please sign in to comment.