Skip to content

Commit 1c84a23

Browse files
committed
Use of toggle()
1 parent 471aa10 commit 1c84a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Filters/Date Range Filter/Custom Range Filter/DateRangeFilterViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ extension DateRangeFilterViewController: UITableViewDelegate {
109109

110110
switch rows[indexPath.row] {
111111
case .startDateTitle:
112-
startDateExpanded = !startDateExpanded
112+
startDateExpanded.toggle()
113113
updateRows()
114114
tableView.reloadData()
115115
case .endDateTitle:
116-
endDateExpanded = !endDateExpanded
116+
endDateExpanded.toggle()
117117
updateRows()
118118
tableView.reloadData()
119119
default:

0 commit comments

Comments
 (0)