diff --git a/src/components/loan_screen/getloan/GetLoan.jsx b/src/components/loan_screen/getloan/GetLoan.jsx index e899e74..1d2572b 100644 --- a/src/components/loan_screen/getloan/GetLoan.jsx +++ b/src/components/loan_screen/getloan/GetLoan.jsx @@ -4,11 +4,7 @@ export default function GetLoan({step, handleStep, screens, typeToShow, setShowT const handleGetLoan = () => { // handleStep({...step.details}, screens.pin) - if(step?.activeUser?.salary_account){ - handleStep({...step.details}, screens.terms_conditions) - }else{ - handleStep({...step.details}, screens.not_eligible) - } + handleStep({...step.details}, screens.terms_conditions) } const handlePayLoan = () => { diff --git a/src/components/loan_screen/getloan/ProductDetails.jsx b/src/components/loan_screen/getloan/ProductDetails.jsx index d6977ab..7cf9c14 100644 --- a/src/components/loan_screen/getloan/ProductDetails.jsx +++ b/src/components/loan_screen/getloan/ProductDetails.jsx @@ -13,6 +13,14 @@ export default function ProductDetails({step, handleStep, screens}) { const products = data?.data?.product_data?.products // PRODUCTS LIST + const handleClick = (product) => { + if(step?.activeUser?.salary_account){ + handleStep(product, screens.getLoan) + }else{ + handleStep({...step.details}, screens.not_eligible) + } + } + return ( <>
@@ -34,7 +42,7 @@ export default function ProductDetails({step, handleStep, screens}) {