Skip to content

Commit

Permalink
fix: swift 6 bug with evaluate java script method
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanStepanok committed Dec 2, 2024
1 parent f694ae7 commit 93f65c2
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 93f65c2

Please sign in to comment.