File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
WooCommerce/Classes/ViewRelated Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ struct HubMenu: View {
113113 NavigationLink ( destination: CouponListView ( siteID: viewModel. siteID) , isActive: $showingCoupons) {
114114 EmptyView ( )
115115 } . hidden ( )
116- NavigationLink ( destination: InAppPurchasesDebugView ( ) , isActive: $showingIAPDebug) {
116+ NavigationLink ( destination: InAppPurchasesDebugView ( siteID : viewModel . siteID ) , isActive: $showingIAPDebug) {
117117 EmptyView ( )
118118 } . hidden ( )
119119 LazyNavigationLink ( destination: viewModel. getReviewDetailDestination ( ) , isActive: $viewModel. showingReviewDetail) {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import StoreKit
33import Yosemite
44
55struct InAppPurchasesDebugView : View {
6+ let siteID : Int64
67 private let stores = ServiceLocator . stores
78 @State var products : [ StoreKit . Product ] = [ ]
89
@@ -19,7 +20,7 @@ struct InAppPurchasesDebugView: View {
1920 } else {
2021 ForEach ( products) { product in
2122 Button ( product. description) {
22- stores. dispatch ( InAppPurchaseAction . purchaseProduct ( siteID: 0 , product: product, completion: { _ in } ) )
23+ stores. dispatch ( InAppPurchaseAction . purchaseProduct ( siteID: siteID , product: product, completion: { _ in } ) )
2324 }
2425 }
2526 }
@@ -45,6 +46,6 @@ struct InAppPurchasesDebugView: View {
4546
4647struct InAppPurchasesDebugView_Previews : PreviewProvider {
4748 static var previews : some View {
48- InAppPurchasesDebugView ( )
49+ InAppPurchasesDebugView ( siteID : 0 )
4950 }
5051}
You can’t perform that action at this time.
0 commit comments