Skip to content

Commit

Permalink
Fix localhost issue 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Pulkith committed Jul 16, 2024
1 parent 27b3cf4 commit 4c047d5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/src/Communications/CommunicationsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import AddEditGroupsModal from '../components/AddEditGroupsModal';
import IDonor from '../util/types/donor';
import IGroup from '../util/types/group';
import IDonation from '../util/types/donation';
import { useData } from '../util/api';
import { useData, getData } from '../util/api';
import PopupPage from '../Popup/PopupPage';

const BACKENDURL = process.env.PUBLIC_URL
Expand Down Expand Up @@ -118,9 +118,12 @@ function CommunicationsPage() {
);
const tempWithDonorInfo = await Promise.all(
temp.map(async (donation: any) => {
const donorInfoResponse = await axios.get(
`${BACKENDURL}/api/donor/id/${donation.donor_id}`,
const donorInfoResponse = await getData(
`donor/id/${donation.donor_id}`,
);
// await axios.get(
// `${BACKENDURL}/api/donor/id/${donation.donor_id}`,
// );
if (!donorInfoResponse) {
return;
}
Expand Down

0 comments on commit 4c047d5

Please sign in to comment.