This commit is contained in:
omkieit 2024-10-23 23:25:15 +05:30
parent 5a1f3d8e7a
commit 02c8197678
4 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -45,7 +45,7 @@
<script type="module" crossorigin src="/assets/index-DLb2856w.js"></script>
<script type="module" crossorigin src="/assets/index-DjwKvwco.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-iEl-il0E.css">
</head>

View File

@ -6,7 +6,7 @@ export const fetchFundDetails = createAsyncThunk(
'fundDetails/fetchFundDetails',
async (id, { rejectWithValue }) => {
try {
const response = await axios.get(`http://localhost:3002/properties/${id}/fund-details`);
const response = await axios.get(`${import.meta.env.VITE_REACT_APP_SECRET}/properties/${id}/fund-details`);
return response.data.fundDetails;
} catch (error) {
return rejectWithValue(error.response.data);

View File

@ -70,7 +70,7 @@ export const addFundDetails = createAsyncThunk(
async ({ id, fundDetails, toast }, { rejectWithValue }) => {
try {
const response = await axios.put(
`http://localhost:3002/properties/${id}/fund-details`,
`${import.meta.env.VITE_REACT_APP_SECRET}/properties/${id}/fund-details`,
fundDetails);
toast.success("Submitted Successfully");
return response.data;