From 3314304b46827c77578cf26d12a270f3ce6a4e28 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 21 Jan 2025 11:15:41 -0600 Subject: [PATCH] fixed bug Signed-off-by: Matt Bruce --- EmployeeDirectory/Views/EmployeeTableViewCell.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/EmployeeDirectory/Views/EmployeeTableViewCell.swift b/EmployeeDirectory/Views/EmployeeTableViewCell.swift index 6a3634a..722cfd8 100644 --- a/EmployeeDirectory/Views/EmployeeTableViewCell.swift +++ b/EmployeeDirectory/Views/EmployeeTableViewCell.swift @@ -128,11 +128,10 @@ public class EmployeeTableViewCell: UITableViewCell { // Bind the image to the photoImageView smallPhotoSubscriber = viewModel.$smallPhoto + .compactMap { $0 } .receive(on: DispatchQueue.main) .sink { [weak self] image in - if let image { - self?.photoImageView.image = image - } + self?.photoImageView.image = image } // Bind data to UI components