diff --git a/frontend/src/community communication/CommunityNoticeBoard.js b/frontend/src/community communication/CommunityNoticeBoard.js index 60b470d..1950882 100644 --- a/frontend/src/community communication/CommunityNoticeBoard.js +++ b/frontend/src/community communication/CommunityNoticeBoard.js @@ -90,9 +90,15 @@ const CommunityNoticeBoard = ({ isAdmin }) => { setError('Failed to post notice. Please try again.'); console.error('Error posting notice:', err); } + finally{ + window.location.reload(); + } } }; + + + const findCategory = (notice) => { const categoryName = categories.find(cat => cat.id === notice.category)?.category || "Unknown Category"; return categoryName;