From 80ff12640d884dd8e09241bad080475b1d72b6e9 Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 10 Jan 2025 11:34:24 -0500 Subject: [PATCH] format --- .../public/src/components/CourseProductDetailEnroll.js | 5 ++++- frontend/public/src/components/TopBar.js | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/public/src/components/CourseProductDetailEnroll.js b/frontend/public/src/components/CourseProductDetailEnroll.js index 888f09f5d8..7395710b01 100644 --- a/frontend/public/src/components/CourseProductDetailEnroll.js +++ b/frontend/public/src/components/CourseProductDetailEnroll.js @@ -259,7 +259,10 @@ export class CourseProductDetailEnroll extends React.Component< ) : null const { upgradeEnrollmentDialogVisibility } = this.state const product = run && run.products ? run.products[0] : null - const newCartDesign = checkFeatureFlag("new-cart-design", currentUser && currentUser.id ? currentUser.id : "anonymousUser") + const newCartDesign = checkFeatureFlag( + "new-cart-design", + currentUser && currentUser.id ? currentUser.id : "anonymousUser" + ) const canUpgrade = !!(run && run.is_upgradable && product) return upgradableCourseRuns.length > 0 || enrollableCourseRuns.length > 1 ? ( diff --git a/frontend/public/src/components/TopBar.js b/frontend/public/src/components/TopBar.js index c0cade0246..fe6990ca59 100644 --- a/frontend/public/src/components/TopBar.js +++ b/frontend/public/src/components/TopBar.js @@ -29,7 +29,12 @@ const TopBar = ({ currentUser }: Props) => { return () => clearTimeout(timeout) }, []) - const newCartDesign = checkFeatureFlag("new-cart-design", currentUser && currentUser.is_authenticated && currentUser.id ? currentUser.id : "anonymousUser") + const newCartDesign = checkFeatureFlag( + "new-cart-design", + currentUser && currentUser.is_authenticated && currentUser.id ? + currentUser.id : + "anonymousUser" + ) const cartItemCount = 0 return (