load profile bug fix

This commit was merged in pull request #49.
This commit is contained in:
victorAnumudu
2024-05-03 17:57:32 +01:00
parent dd2df0d695
commit ab389d6632
2 changed files with 7 additions and 5 deletions
+3 -3
View File
@@ -28,9 +28,9 @@ export const applyForLoan = (postData:any) => {
// FUNCTION TO GET USER BY CUSTOMER UID
export const getUserByID = () => {
export const getUserByID = (uid:string) => {
let reqData = {
customer_uid: localStorage.getItem('uid'),
// customer_uid: localStorage.getItem('uid'),
}
return getAuxEnd(`/profile?uid=${reqData.customer_uid}`, reqData)
return getAuxEnd(`/profile?uid=${uid}`, reqData)
}