Skip to content

Commit

Permalink
refactor: address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedbashir committed Jul 10, 2024
1 parent 21dd0d8 commit 14d22f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Core/Core/CourseUpgrade/CourseUpgradeHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 3 additions & 1 deletion OpenEdX/Data/DashboardPersistence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 14d22f8

Please sign in to comment.