diff --git a/src/components/loan_screen/loaninfo/LoanInfoList.jsx b/src/components/loan_screen/loaninfo/LoanInfoList.jsx index da219bc..48b6d1a 100644 --- a/src/components/loan_screen/loaninfo/LoanInfoList.jsx +++ b/src/components/loan_screen/loaninfo/LoanInfoList.jsx @@ -3,7 +3,7 @@ import { useQuery } from "@tanstack/react-query"; import { useMutation } from '@tanstack/react-query' import { IoIosArrowForward } from "react-icons/io"; -import { getOffers, loanSelect } from '../../../services/siteServices' +import { getLoanInfo, loanSelect } from '../../../services/siteServices' import queryKeys from '../../../services/queryKeys' export default function LoanInfoList({step, handleStep, screens}) { @@ -12,10 +12,10 @@ export default function LoanInfoList({step, handleStep, screens}) { const {data, isFetching, isError, error} = useQuery({ queryKey: queryKeys.offers, - queryFn: () => getOffers() + queryFn: () => getLoanInfo() }) - // const list = data?.data?.product_data?.offers // OFFERS LIST + const loanInfoList = data?.data // LOAN INFO LIST const selectedLoan = useMutation({ mutationFn: (details) => { @@ -55,7 +55,7 @@ export default function LoanInfoList({step, handleStep, screens}) { : <>
Loan to repay
- {offers.map(item => { + {loanInfoList.map(item => { let isDisabled = item.active == '0' ? true : false return (