Skip to content

Commit

Permalink
update package
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilveirah committed Jan 26, 2023
1 parent b31d5e1 commit 986fc0e
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 390 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ extension SPCCPAManagePreferenceViewController: UITableViewDataSource, UITableVi
switch consentsSnapshot.consentStatus {
case .ConsentedAll, .RejectedNone: cell.isOn = true
case .RejectedAll: cell.isOn = false
case .RejectedSome: cell.isOn = !consentsSnapshot.toggledCategoriesIds.contains(category._id)
default: cell.isOn = nil
case .RejectedSome, .LinkedNoAction, .Unknown: fallthrough
default: cell.isOn = !consentsSnapshot.toggledCategoriesIds.contains(category._id)
}

cell.selectable = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ extension SPCCPAPartnersViewController: UITableViewDataSource, UITableViewDelega
switch consentsSnapshot.consentStatus {
case .ConsentedAll, .RejectedNone: cell.isOn = true
case .RejectedAll: cell.isOn = false
case .RejectedSome: cell.isOn = !consentsSnapshot.toggledVendorsIds.contains(vendor._id)
default: cell.isOn = nil
case .RejectedSome, .LinkedNoAction, .Unknown: fallthrough
default: cell.isOn = !consentsSnapshot.toggledVendorsIds.contains(vendor._id)
}
cell.selectable = true
cell.isCustom = false
Expand Down
Loading

0 comments on commit 986fc0e

Please sign in to comment.