diff --git a/CareKitStore/CareKitStore/CoreData/OCKCDPostalAddress.swift b/CareKitStore/CareKitStore/CoreData/OCKCDPostalAddress.swift index 13d836c86..86770890c 100644 --- a/CareKitStore/CareKitStore/CoreData/OCKCDPostalAddress.swift +++ b/CareKitStore/CareKitStore/CoreData/OCKCDPostalAddress.swift @@ -41,8 +41,8 @@ class OCKCDPostalAddress: NSManagedObject { @NSManaged var country: String @NSManaged var isoCountryCode: String - init(address: OCKPostalAddress, context: NSManagedObjectContext) { - super.init(entity: Self.entity(), insertInto: context) + convenience init(address: OCKPostalAddress, context: NSManagedObjectContext) { + self.init(entity: Self.entity(), insertInto: context) street = address.street subLocality = address.subLocality city = address.city