done
This commit is contained in:
parent
5a1f3d8e7a
commit
02c8197678
File diff suppressed because one or more lines are too long
|
@ -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>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue