Skip to content

Commit 1e2380b

Browse files
committed
OrderSearchStarterVC: Use CellViewModel for the table rows
1 parent de32f9a commit 1e2380b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/Classes/ViewRelated/Search/Order/OrderSearchStarterViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ extension OrderSearchStarterViewController: UITableViewDataSource {
6565
fatalError("Unexpected or missing cell")
6666
}
6767

68-
let orderStatus = viewModel.orderStatus(at: indexPath)
68+
let cellViewModel = viewModel.cellViewModel(at: indexPath)
6969

7070
cell.accessoryType = .disclosureIndicator
71-
cell.updateUI(title: orderStatus.name ?? "", value: "\(orderStatus.total)")
71+
cell.updateUI(title: cellViewModel.name, value: cellViewModel.total)
7272

7373
return cell
7474
}

0 commit comments

Comments
 (0)