diff --git a/Core/Core/CourseUpgrade/CourseUpgradeHelper.swift b/Core/Core/CourseUpgrade/CourseUpgradeHelper.swift index 1b5c50538..05ca263d7 100644 --- a/Core/Core/CourseUpgrade/CourseUpgradeHelper.swift +++ b/Core/Core/CourseUpgrade/CourseUpgradeHelper.swift @@ -199,7 +199,7 @@ public class CourseUpgradeHelper: CourseUpgradeHelperProtocol { switch state { case .basket: - saveInProgressIAP(courseID: courseID, sku: sku, lmsPrice: lmsPrice ?? 0.0) + saveInProgressIAP(courseID: courseID, sku: sku, lmsPrice: lmsPrice ?? .zero) case .complete: removeInProgressIAP() case .error(let upgradeError): diff --git a/OpenEdX/Data/DashboardPersistence.swift b/OpenEdX/Data/DashboardPersistence.swift index 35a3bd95c..3ccfd1ab7 100644 --- a/OpenEdX/Data/DashboardPersistence.swift +++ b/OpenEdX/Data/DashboardPersistence.swift @@ -60,7 +60,9 @@ public class DashboardPersistence: DashboardPersistenceProtocol { auditAccessExpires: $0.auditAccessExpires, startDisplay: $0.startDisplay, startType: DisplayStartType(value: $0.startType), - lmsPrice: $0.lmsPrice)} + lmsPrice: $0.lmsPrice + ) + } if let result, !result.isEmpty { return result } else {