Skip to content

Commit

Permalink
updates delete function call
Browse files Browse the repository at this point in the history
  • Loading branch information
gregh13 committed Mar 28, 2024
1 parent 7711ad5 commit 3a56754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/components/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class HomeComponent implements OnInit {
const announcementId = this.announcementId;
console.log("Delete Announcement Id: ", announcementId);

const res = await this.announcementService.editAnnouncement(announcementId);
const res = await this.announcementService.deleteAnnouncement(announcementId);
if (res.status === 400) {
console.log("Could not delete announcement!");
this.feedbackMessage = "Could not delete announcement!";
Expand Down

0 comments on commit 3a56754

Please sign in to comment.