Skip to content

Commit 4b69703

Browse files
committed
add: check if nudges are being shown to allow the insight to be shown
1 parent fedbd94 commit 4b69703

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WordPress/Classes/ViewRelated/Stats/SiteStatsDashboardViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,11 @@ private extension SiteStatsDashboardViewController {
194194
let selectedPeriodChanged = currentSelectedPeriod != oldSelectedPeriod
195195
let previousSelectedPeriodWasInsights = oldSelectedPeriod == .insights
196196
let pageViewControllerIsEmpty = pageViewController?.viewControllers?.isEmpty ?? true
197+
let isGrowAudienceShowingOnInsights = insightsTableViewController.isGrowAudienceShowing
197198

198199
switch currentSelectedPeriod {
199200
case .insights:
200-
if selectedPeriodChanged || pageViewControllerIsEmpty {
201+
if selectedPeriodChanged || pageViewControllerIsEmpty || isGrowAudienceShowingOnInsights {
201202
pageViewController?.setViewControllers([insightsTableViewController],
202203
direction: .forward,
203204
animated: false)

0 commit comments

Comments
 (0)