added add card API
This commit was merged in pull request #65.
This commit is contained in:
@@ -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: [] });
|
||||
});
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user