This commit is contained in:
rezakarimi
2023-01-04 09:07:58 +03:30
parent 13b00e21cd
commit 0fcb16a108
+8 -8
View File
@@ -31,23 +31,23 @@ const StepFour = () => {
{investment.length >= 6 ? (
<div>
<div className={'flex justify-content-center mt-2'}>
{investment / 75000000 >= 1 ? (
{investment / 85000000 >= 1 ? (
<div dir={'rtl'} className={'bk-light mt-2'}>
<div className={'text-center'}>
تعداد سهام قابل خرید شما:{' '}
<strong className={'mr-2'}>{Math.ceil(investment / 75000000)} سهم </strong>{' '}
<strong className={'mr-2'}>{Math.ceil(investment / 85000000)} سهم </strong>{' '}
</div>
{Math.ceil(investment / 75000000) * 75000000 - investment ===
Math.ceil(investment / 75000000) * 75000000 ? (
<div>{Math.ceil(investment / 75000000)}</div>
{Math.ceil(investment / 85000000) * 85000000 - investment ===
Math.ceil(investment / 85000000) * 85000000 ? (
<div>{Math.ceil(investment / 85000000)}</div>
) : (
<div>
{Math.ceil(investment / 75000000) * 75000000 - investment === 0 ? (
{Math.ceil(investment / 85000000) * 85000000 - investment === 0 ? (
''
) : (
<div className={'flex bg-gray-200 p-2 rounded-5 justify-content-center align-items-center'}>
با پرداخت {Math.ceil(investment / 75000000) * 75000000 - investment} تومان بیشتر می توانید{' '}
{Math.ceil(investment / 75000000)} سهم خریدار کنید
با پرداخت {Math.ceil(investment / 85000000) * 85000000 - investment} تومان بیشتر می توانید{' '}
{Math.ceil(investment / 85000000)} سهم خریدار کنید
</div>
)}
<div className={'flex justify-content-center mt-3'}>