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">
|
<link rel="stylesheet" crossorigin href="/assets/index-iEl-il0E.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ export const fetchFundDetails = createAsyncThunk(
|
||||||
'fundDetails/fetchFundDetails',
|
'fundDetails/fetchFundDetails',
|
||||||
async (id, { rejectWithValue }) => {
|
async (id, { rejectWithValue }) => {
|
||||||
try {
|
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;
|
return response.data.fundDetails;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return rejectWithValue(error.response.data);
|
return rejectWithValue(error.response.data);
|
||||||
|
|
|
@ -70,7 +70,7 @@ export const addFundDetails = createAsyncThunk(
|
||||||
async ({ id, fundDetails, toast }, { rejectWithValue }) => {
|
async ({ id, fundDetails, toast }, { rejectWithValue }) => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.put(
|
const response = await axios.put(
|
||||||
`http://localhost:3002/properties/${id}/fund-details`,
|
`${import.meta.env.VITE_REACT_APP_SECRET}/properties/${id}/fund-details`,
|
||||||
fundDetails);
|
fundDetails);
|
||||||
toast.success("Submitted Successfully");
|
toast.success("Submitted Successfully");
|
||||||
return response.data;
|
return response.data;
|
||||||
|
|
Loading…
Reference in New Issue