@@ -25,7 +25,7 @@ import common_functions from '../../../_common/common_functions.js';
25
25
import { localize } from '../../../_common/localize.js' ;
26
26
import dataManager from '../../common/data_manager.js' ;
27
27
import { setDefaultParams } from '../../common/helpers.js' ;
28
- import { isCryptocurrency } from '../../../_common/base/currency_base.js' ;
28
+ import { isCryptocurrency , getMinPayout } from '../../../_common/base/currency_base.js' ;
29
29
30
30
const Cookies = require ( 'js-cookie' ) ;
31
31
@@ -54,8 +54,8 @@ export const FormComponent = () => {
54
54
const expiry_time = Defaults . get ( PARAM_NAMES . EXPIRY_TIME ) ;
55
55
const amount_type = Defaults . get ( PARAM_NAMES . AMOUNT_TYPE ) ;
56
56
const amount = Defaults . get ( PARAM_NAMES . AMOUNT ) ;
57
- const amount_crypto = Defaults . get ( 'amount_crypto' ) ;
58
57
const currency = Defaults . get ( PARAM_NAMES . CURRENCY ) ;
58
+ const amount_crypto = Defaults . get ( 'amount_crypto' ) ?? getMinPayout ( currency ) ;
59
59
const is_equal = Defaults . get ( PARAM_NAMES . IS_EQUAL ) ;
60
60
const prediction = Defaults . get ( PARAM_NAMES . PREDICTION ) ;
61
61
const selected_tick = Defaults . get ( PARAM_NAMES . SELECTED_TICK ) ;
@@ -167,8 +167,7 @@ export const FormComponent = () => {
167
167
return moment ( endtime_data . options [ 0 ] . value ) . format ( 'ddd - DD MMM, YYYY' ) ;
168
168
} ;
169
169
170
- const getAmount = ( ) => ( isCryptocurrency ( currency ) && amount_crypto ) ? amount_crypto : amount ;
171
-
170
+ const getAmount = ( ) => ( isCryptocurrency ( currency ) ) ? amount_crypto : amount ;
172
171
const lang = Cookies . get ( 'language' ) . replace ( '_' , '-' ) . toLowerCase ( ) || 'en' ;
173
172
174
173
return (
0 commit comments