withdrawal changes

This commit is contained in:
YasinShaikh123
2024-09-10 15:54:58 +05:30
parent 8cb693a4c4
commit 8b43ff77a9
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ const DrawalRequestApprove = ({
if (data) {
const investorAmount = parseFloat(data?.data?.investorAmount);
reset({
investorAmount: investorAmount,
investorAmount: Math.abs(investorAmount),
accountName: data?.data?.accountName,
});
}

View File

@@ -12,7 +12,7 @@ export const depositRequest = createApi({
tagTypes: ["getDepositRequest", "getDepositHistory"],
endpoints: (builder) => ({
getDepositRequest: builder.query({
query: () => `/deposit/admin/pending-requests`,
query: ({page, size}) => `/deposit/admin/pending-requests?page=${page}&size=${size}`,
providesTags: ["getDepositRequest"],
}),