Skip to content

Commit

Permalink
flow
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Jan 10, 2025
1 parent b8f8cb2 commit 04c777a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ 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)
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 ? (
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/src/components/TopBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const TopBar = ({ currentUser }: Props) => {
return () => clearTimeout(timeout)
}, [])

const newCartDesign = checkFeatureFlag("new-cart-design", currentUser)
const newCartDesign = checkFeatureFlag("new-cart-design", currentUser && currentUser.is_authenticated && currentUser.id ? currentUser.id : "anonymousUser")
const cartItemCount = 0
return (
<header className="site-header d-flex d-flex flex-column">
Expand Down

0 comments on commit 04c777a

Please sign in to comment.