File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ struct WidgetPreviewSheetView: View {
99 @EnvironmentObject private var app : AppViewModel
1010 @EnvironmentObject private var currency : CurrencyViewModel
1111 @EnvironmentObject private var navigation : NavigationViewModel
12+ @EnvironmentObject private var pubkyProfile : PubkyProfileManager
1213 @EnvironmentObject private var settings : SettingsViewModel
1314 @EnvironmentObject private var sheets : SheetViewModel
1415 @EnvironmentObject private var suggestionsManager : SuggestionsManager
@@ -64,13 +65,15 @@ struct WidgetPreviewSheetView: View {
6465 PaykitFeatureFlags . isUIAvailable && isPaykitUIEnabled
6566 }
6667
67- /// Whether the Suggestions widget would currently show no cards (mirrors `HomeWidgetsView`'s filter).
68+ /// Whether the Suggestions widget would currently show no cards (mirrors what the live
69+ /// `Suggestions` view renders, including the `pubkyProfile` completion check).
6870 private var suggestionsAreEmpty : Bool {
6971 Suggestions . visibleCards (
7072 wallet: wallet,
7173 app: app,
7274 settings: settings,
7375 suggestionsManager: suggestionsManager,
76+ pubkyProfile: pubkyProfile,
7477 isPaykitUIEnabled: isPaykitUIActive
7578 ) . isEmpty
7679 }
You can’t perform that action at this time.
0 commit comments