From 839bdd1b0721c36983f6ff50cd2bbaa2521b8bcc Mon Sep 17 00:00:00 2001 From: ankith26 Date: Sun, 15 Dec 2024 18:51:08 +0000 Subject: [PATCH] Apply Prettier Formatting Fixes --- frontend/src/components/ReviewBox.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/ReviewBox.jsx b/frontend/src/components/ReviewBox.jsx index d66ece6..b449a8a 100644 --- a/frontend/src/components/ReviewBox.jsx +++ b/frontend/src/components/ReviewBox.jsx @@ -140,7 +140,7 @@ const ReviewBox = ({ children, title, endpoint, initExpanded }) => { } else { fetchReviews(); } - } + }; const toggleExpand = () => { setIsExpanded(!isExpanded); @@ -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();