decimal issue fixed

This commit is contained in:
victorAnumudu
2025-02-25 17:43:55 +01:00
parent f1985ae180
commit d263a4e3df
2 changed files with 8 additions and 2 deletions
+7 -2
View File
@@ -25,7 +25,8 @@ export default function GetLoanScreens() {
loan_details: 'loan_details',
offers: 'offers-screen',
selected_offer: 'selected-offer-screen',
loan_pin: 'loan-pin-screen'
loan_pin: 'loan-pin-screen',
finished: 'finished'
}
const {state} = useLocation()
@@ -49,7 +50,7 @@ export default function GetLoanScreens() {
const products = data?.data?.product_data?.products // PRODUCTS LIST
const handleBackBtn = () => {
if(step?.screen?.length <= 0 || step?.screen[step.screen.length -1 ] == screens.loan_pin){
if(step?.screen?.length <= 0 || step?.screen[step.screen.length -1 ] == screens.finished){
setStep({details: {}, screen: []})
return navigate(myLinks.home, {state:{proceed:'true'}})
}
@@ -148,6 +149,10 @@ export default function GetLoanScreens() {
<>
<LoanPin step={step} handleStep={handleStep} screens={screens} />
</>
:step?.screen[step.screen.length -1 ] == screens.finished ?
<>
<LoanPin step={step} handleStep={handleStep} screens={screens} />
</>
: null
}
+1
View File
@@ -37,6 +37,7 @@ export default function LoanPin({step, handleStep, screens}) {
},
onSuccess: (res) => {
setIsSuccess(true)
handleStep({...step}, screens.finished)
}
})