diff --git a/bwi/CommonUI/TableViewCellWithLabelSubLabelAndSwitch.swift b/bwi/CommonUI/TableViewCellWithLabelSubLabelAndSwitch.swift index c3c7f1625..47aa4603e 100644 --- a/bwi/CommonUI/TableViewCellWithLabelSubLabelAndSwitch.swift +++ b/bwi/CommonUI/TableViewCellWithLabelSubLabelAndSwitch.swift @@ -51,7 +51,7 @@ import Foundation func makeViewController(parent: UIViewController, toggleData: BWIToggleWithLabelAndSubLabelCellData, onValueChanged:((_ newValue: Bool)-> Void)?) { self.cellToggleData = toggleData if let cellToggleData = self.cellToggleData { - hostingController = UIHostingController(rootView: TableViewCellWithLabelSubLabelAndSwitchView(toggleData: bwiToggle, onValueChanged: onValueChanged)) + hostingController = UIHostingController(rootView: TableViewCellWithLabelSubLabelAndSwitchView(toggleData: cellToggleData, onValueChanged: onValueChanged)) setupView(parent: parent) } }