Skip to content

Commit 8729579

Browse files
committed
Ignore hasChanges for editing flow
1 parent fc526a7 commit 8729579

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
@@ -28,7 +28,7 @@ final class NewOrderViewModel: ObservableObject {
2828
/// Indicates whether user has made any changes
2929
///
3030
var hasChanges: Bool {
31-
orderSynchronizer.order != OrderFactory.emptyNewOrder
31+
orderSynchronizer.order != OrderFactory.emptyNewOrder && flow == .creation
3232
}
3333

3434
/// Indicates whether the cancel button is visible.

0 commit comments

Comments
 (0)