Skip to content

Commit

Permalink
hide feature under feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Paun committed Mar 11, 2024
1 parent 1943e98 commit db981a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/overview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,14 @@ const OverviewPage = () => {
.filter( ( e ) => e && e.fee !== undefined );
const isOverviewSurveySubmitted =
wcpaySettings.isOverviewSurveySubmitted ?? false;
const isPaymentOverviewWidgetEnabled =
wcpaySettings.featureFlags.isPaymentOverviewWidgetEnabled ?? false;

return (
<Page isNarrow className="wcpay-overview">
<OverviewPageError />
<JetpackIdcNotice />
{ ! isOverviewSurveySubmitted && (
{ ! isOverviewSurveySubmitted && isPaymentOverviewWidgetEnabled && (
<WcPayOverviewSurveyContextProvider>
<Survey />
</WcPayOverviewSurveyContextProvider>
Expand Down

0 comments on commit db981a2

Please sign in to comment.