Skip to content

Commit

Permalink
Merge branch 'chore/migration-to-swift6' into chore/swift6-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
forgotvas committed Dec 2, 2024
2 parents d776ed2 + 93f65c2 commit 20a9b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Core/Network/OfflineSyncManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public class OfflineSyncManager: OfflineSyncManagerProtocol {
)
var correctedProgressJson = progressJson
correctedProgressJson = correctedProgressJson.removingPercentEncoding ?? correctedProgressJson
_ = try? await message.webView?.evaluateJavaScript("markProblemCompleted('\(correctedProgressJson)')")
_ = message.webView?.evaluateJavaScript("markProblemCompleted('\(correctedProgressJson)')") { _ ,_ in }
} else if let offlineProgress = await persistence.loadProgress(for: blockID) {
var correctedProgressJson = offlineProgress.progressJson
correctedProgressJson = correctedProgressJson.removingPercentEncoding ?? correctedProgressJson
_ = try? await message.webView?.evaluateJavaScript("markProblemCompleted('\(correctedProgressJson)')")
_ = message.webView?.evaluateJavaScript("markProblemCompleted('\(correctedProgressJson)')") { _ ,_ in }
}
}

Expand Down

0 comments on commit 20a9b62

Please sign in to comment.