Skip to content

Commit 70c7907

Browse files
committed
Hide cancel button for editing flow
1 parent 8729579 commit 70c7907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Creation/NewOrderViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class NewOrderViewModel: ObservableObject {
3434
/// Indicates whether the cancel button is visible.
3535
///
3636
var shouldShowCancelButton: Bool {
37-
featureFlagService.isFeatureFlagEnabled(.splitViewInOrdersTab)
37+
featureFlagService.isFeatureFlagEnabled(.splitViewInOrdersTab) && flow == .creation
3838
}
3939

4040
/// Active navigation bar trailing item.

0 commit comments

Comments
 (0)