Skip to content

Commit

Permalink
refactor: rename number of contracts (binary-com#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-deriv committed Jun 28, 2023
1 parent 9ba9b25 commit d319a55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const ContractDetails = ({ contract_end_time, contract_info, duration, duration_
tick_count,
tick_passed,
transaction_ids: { buy, sell } = {},
number_of_contracts,
display_number_of_contracts,
} = contract_info;

const is_profit = profit >= 0;
Expand Down Expand Up @@ -121,7 +121,7 @@ const ContractDetails = ({ contract_end_time, contract_info, duration, duration_
id='dt_bt_label'
icon={<Icon icon='IcContractPayout' size={24} />}
label={localize('Payout per point')}
value={`${number_of_contracts} ${getCurrencyDisplayCode(currency)}` || ' - '}
value={`${display_number_of_contracts} ${getCurrencyDisplayCode(currency)}` || ' - '}
/>
)}
</React.Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const getProposalInfo = (store, response, obj_prev_contract_basis) => {

const contract_basis =
store.is_vanilla || store.is_turbos
? { text: getLocalizedBasis().payout_per_point, value: 'number_of_contracts' }
? { text: getLocalizedBasis().payout_per_point, value: 'display_number_of_contracts' }
: basis_list.find(o => o.value !== store.basis) || {};

const is_stake = contract_basis.value === 'stake';
Expand Down

0 comments on commit d319a55

Please sign in to comment.