diff --git a/Core/Core/Network/OfflineSyncManager.swift b/Core/Core/Network/OfflineSyncManager.swift index ec8a8f4a..a5fd17eb 100644 --- a/Core/Core/Network/OfflineSyncManager.swift +++ b/Core/Core/Network/OfflineSyncManager.swift @@ -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 } } }