uaem-na / donations-tracker

General-purpose distribution platform developed for the McGill chapter of the Universities Allied for Essential Medicine.
https://donations-tracker-dev.uaem.org
8 stars 1 forks source link

Fix: users deleting posts #128

Closed olaabi closed 3 months ago

olaabi commented 5 months ago

Was accidentally merged into main previously but reverted; will review! The only changes are in CreatePostForm.tsx and EditPostForm.tsx.

shjryan commented 5 months ago

@olaabi hey! I really should work on making sure that the code formatter runs on every commit. I assume that the files were changed, because the pre-commit hook doesn't run when we commit due to the deps being defined in backend/frontend folders... 🤔

Anyways, I was looking over all the files, but I did not notice a change in the mentioned form components. Can you point me to the line numbers that changed?

jaewonmoon00 commented 5 months ago

Hey I think my prettier extension might have reformatted some files. If that's the case, I apologize. What I changed was line 128 in EditPostForm.tsx, which is navigate(/posts); and line 72 in CreatePostForm.tsx, which is navigate(/posts);