From 0bdcec7ecad103e0c14dc18ff31ef7a799bc4c7a Mon Sep 17 00:00:00 2001 From: Yusuf Suleman Date: Fri, 3 Apr 2026 12:55:46 -0500 Subject: [PATCH] fix: FeedbackView rawPost API call signature Co-Authored-By: Claude Opus 4.6 (1M context) --- ios/Platform/Platform/Features/Feedback/FeedbackView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/Platform/Platform/Features/Feedback/FeedbackView.swift b/ios/Platform/Platform/Features/Feedback/FeedbackView.swift index da29b01..39057cc 100644 --- a/ios/Platform/Platform/Features/Feedback/FeedbackView.swift +++ b/ios/Platform/Platform/Features/Feedback/FeedbackView.swift @@ -100,15 +100,15 @@ struct FeedbackSheet: View { do { let body: [String: String] = ["text": text.trimmingCharacters(in: .whitespaces), "source": "ios"] let jsonData = try JSONSerialization.data(withJSONObject: body) - let (data, response) = try await APIClient.shared.rawPost("/api/feedback", body: jsonData) + let data = try await APIClient.shared.rawPost(path: "/api/feedback", data: jsonData) - if let httpResp = response as? HTTPURLResponse, httpResp.statusCode < 300 { + let respBody = try? JSONSerialization.jsonObject(with: data) as? [String: Any] + if respBody?["ok"] as? Bool == true { withAnimation { sent = true } DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) { dismiss() } } else { - let respBody = try? JSONSerialization.jsonObject(with: data) as? [String: Any] error = (respBody?["error"] as? String) ?? "Failed to send" } } catch {