decimal issue fixed

This commit is contained in:
victorAnumudu
2025-02-25 17:34:04 +01:00
parent f74e0ef436
commit f1985ae180
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -11,9 +11,9 @@ export default function LoanDetails({step, handleStep, screens}) {
<p className='font-semibold text-base md:text-xl'>Loan Details</p>
<div className='text-input w-full flex flex-col gap-2 justify-center items-center'>
<p className='w-full text-base md:text-xl'>Loan Amount: {step.details.typedAmount}</p>
<p className='w-full text-base md:text-xl'>Interest 3%: {step.details.typedAmount*0.03}</p>
<p className='w-full text-base md:text-xl'>Mgt Fee 1%: {step.details.typedAmount*0.01}</p>
<p className='w-full text-base md:text-xl'>Insurance 1%: {step.details.typedAmount*0.01}</p>
<p className='w-full text-base md:text-xl'>Interest 3%: {Math.round((step.details.typedAmount*0.03 + Number.EPSILON) * 100) / 100}</p>
<p className='w-full text-base md:text-xl'>Mgt Fee 1%: {Math.round((step.details.typedAmount*0.01 + Number.EPSILON) * 100) / 100}</p>
<p className='w-full text-base md:text-xl'>Insurance 1%: {Math.round((step.details.typedAmount*0.01 + Number.EPSILON) * 100) / 100}</p>
</div>
<div className='mt-3 flex justify-center'>
<button onClick={handleGetLoan} className='p-3 bg-purple-800 text-lg sm:text-2xl text-white font-bold rounded'>Accept</button>
+1 -1
View File
@@ -46,7 +46,7 @@ export default function LoanPin({step, handleStep, screens}) {
<div className='mt-3 flex flex-col gap-4'>
<div className='text-input font-semibold w-full flex flex-col gap-4 justify-center items-center'>
<p className='text-center text-base md:text-xl'>{`Your loan of ₦${step.details.typedAmount} would be set up. T&C's apply.`}</p>
<Label name='Enter your 5 Digit pin' htmlfor='pin' />
<Label name='Enter your 4 Digit pin' htmlfor='pin' />
<InputText id='pin' name='pin' type='text' value={pin} handleChange={handlePinChange} />
<button onClick={()=>{proceed.mutate()}} disabled={proceed.isPending} className='p-3 bg-purple-800 text-base sm:text-xl text-white font-bold rounded'>{proceed.isPending ? 'loading...' : 'Continue'}</button>
</div>