api issue fix

This commit is contained in:
victorAnumudu
2025-03-04 19:52:51 +01:00
parent eb340cfc1b
commit 6d7db4d733
2 changed files with 6 additions and 2 deletions
@@ -15,7 +15,11 @@ export default function PayloanScreens({step, screens, typeToShow, setShowType,
{/* <GetLoan step={step} handleStep={handleStep} screens={screens} typeToShow={typeToShow} setShowType={setShowType} /> */}
<PinRepayment step={step} handleStep={handleStep} screens={screens} />
</>
: null
: step?.screen[step.screen.length -1 ] == screens.finished ?
<>
<PinRepayment step={step} handleStep={handleStep} screens={screens} />
</>
:null
}
</>
)
@@ -37,7 +37,7 @@ export default function PinRepayment({step, handleStep, screens}) {
},
onSuccess: (res) => {
setIsSuccess(true)
// handleStep({...step}, screens.finished)
handleStep({...step}, screens.finished)
}
})