Skip to content

Commit

Permalink
Apply Prettier Formatting Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 authored and github-actions[bot] committed Dec 15, 2024
1 parent 8fee7c7 commit 839bdd1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/ReviewBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const ReviewBox = ({ children, title, endpoint, initExpanded }) => {
} else {
fetchReviews();
}
}
};

const toggleExpand = () => {
setIsExpanded(!isExpanded);
Expand All @@ -151,8 +151,7 @@ const ReviewBox = ({ children, title, endpoint, initExpanded }) => {
if (initExpanded != isExpanded) {
/* reviews will be updated in the isExpanded watcher */
setIsExpanded(initExpanded);
}
else {
} else {
/* isExpanded watcher will not be called, so force update here */
if (initExpanded) {
fetchReviewsAllowCache();
Expand Down

0 comments on commit 839bdd1

Please sign in to comment.