File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
WooCommerce/Classes/ViewRelated/Products/Edit Product Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,10 @@ final class ProductFormViewModel: ProductFormViewModelProtocol {
154154
155155 if featureFlagService. isFeatureFlagEnabled ( . productsOnboarding) ,
156156 // The store is hosted on WP.com
157- stores. sessionManager. defaultSite? . isWordPressComStore == true ,
157+ let site = stores. sessionManager. defaultSite,
158+ site. isWordPressComStore,
159+ // In some edge cases loginURL can be empty preventing successful login flow
160+ site. loginURL. isNotEmpty,
158161 // Preview existing drafts or new products, that can be saved as a draft
159162 ( canSaveAsDraft ( ) || originalProductModel. status == . draft) ,
160163 // Do not preview new blank products without any changes
You can’t perform that action at this time.
0 commit comments