File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
WooCommerce/Classes/ViewRelated/Orders Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ final class OrdersViewModel {
2929
3030 /// Used for cancelling the observer for Remote Notifications when `self` is deallocated.
3131 ///
32- private var disposable : ObservationToken ?
32+ private var cancellable : ObservationToken ?
3333
3434 /// The block called if self requests a resynchronization of the first page.
3535 ///
@@ -252,7 +252,7 @@ private extension OrdersViewModel {
252252 /// A refresh will be requested when receiving them.
253253 ///
254254 func observeForegroundRemoteNotifications( ) {
255- disposable = pushNotificationsManager. foregroundNotifications. subscribe { [ weak self] notification in
255+ cancellable = pushNotificationsManager. foregroundNotifications. subscribe { [ weak self] notification in
256256 guard notification. kind == . storeOrder else {
257257 return
258258 }
@@ -262,7 +262,7 @@ private extension OrdersViewModel {
262262 }
263263
264264 func stopObservingForegroundRemoteNotifications( ) {
265- disposable ? . cancel ( )
265+ cancellable ? . cancel ( )
266266 }
267267}
268268
You can’t perform that action at this time.
0 commit comments