Skip to content

Commit 11b91aa

Browse files
committed
fix: check pubky profile completion
1 parent 835923b commit 11b91aa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Bitkit/Views/Widgets/WidgetPreviewSheetView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)