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 (