added add card API

This commit was merged in pull request #65.
This commit is contained in:
victorAnumudu
2024-08-05 20:02:21 +01:00
parent cb23cbd57c
commit 69c43e1d88
9 changed files with 105 additions and 9 deletions
@@ -108,8 +108,6 @@ const DashboardHomeIntro: FC<DashboardHomeIntroProps> = ({
}
getUserPendingLoanList(uid)
.then((res) => {
console.log('RES', res);
console.log('RES', userLoanList);
if (!res || !res.data.loans) {
setUserLoanList({ loading: false, data: [] });
return;
@@ -117,7 +115,6 @@ const DashboardHomeIntro: FC<DashboardHomeIntroProps> = ({
setUserLoanList({ loading: false, data: res?.data?.loans });
})
.catch((err) => {
console.log(err);
setUserLoanList({ loading: false, data: [] });
});
}, []);