Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
lsylcy0307 committed Apr 28, 2024
1 parent abb8a81 commit 772d312
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/Popup/PopupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function PopupPage() {

{/* Popup */}
<Dialog open={openPopup} onClose={handleClosePopup}>
<DialogTitle> {donorData?.contact_name} Summary </DialogTitle>
<DialogTitle> {donorData?.contact_name} Summary </DialogTitle>
<DialogContent>
<TableContainer component={Paper}>
<Table>
Expand Down
8 changes: 4 additions & 4 deletions server/src/controllers/donation.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ const getDonationsByDonorId = async (
res: express.Response,
next: express.NextFunction,
) => {
const { donorId } = req.params;
if (!donorId) {
next(ApiError.missingFields(['donorId']));
const { id } = req.params;
if (!id) {
next(ApiError.missingFields(['id']));
return;
}
return getAllDonationsbyDonorId(donorId)
return getAllDonationsbyDonorId(id)
.then((donationList: any) => {
res.status(StatusCode.OK).send(donationList);
})
Expand Down

0 comments on commit 772d312

Please sign in to comment.