Skip to content

Commit 646d66f

Browse files
authored
fix(Dr. Rai Reports): Use one flag per site (#5709)
**Story card:** [sc-16860](https://app.shortcut.com/simpledotorg/story/16860/enable-action-plans-are-visible-in-app-progress-tab) ## Because When both tags are used, both tags need to be enabled for the user to see the report in the progress tab. This is not necessary since the action plans in the progress tab is view-only. Only depending on one tag is sufficient in this case. ## This addresses Using one feature flag only for the progress tab ## Test instructions suite tests
1 parent 636f400 commit 646d66f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/api/v3/analytics/user_analytics/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</head>
2020
<body>
2121
<div id="home-page">
22-
<% if Flipper.enabled?(:dr_rai_reports, current_user) && Flipper.enabled?(:dr_rai_progress) && @region.facility_region? %>
22+
<% if Flipper.enabled?(:dr_rai_progress) && @region.facility_region? %>
2323
<% dr_rai_component = Dashboard::DrRaiReport.new(nil, @region.slug, @dr_rai_options, true) %>
2424
<% unless dr_rai_component.action_plans.empty? %>
2525
<div class="mb-8px p-16px bgc-white bs-card">

0 commit comments

Comments
 (0)