diff --git a/ClaudeChecker/UsageViewModel.swift b/ClaudeChecker/UsageViewModel.swift index af8fe89..0df2f31 100644 --- a/ClaudeChecker/UsageViewModel.swift +++ b/ClaudeChecker/UsageViewModel.swift @@ -84,7 +84,7 @@ class UsageViewModel: ObservableObject { // Fetches an API path by navigating the WebView to the URL and reading the response. // Navigation lets WebKit send full browser headers and cookies automatically — // more reliable than callAsyncJavaScript fetch, which bypasses SPA auth interceptors. - private func webViewFetch(_ path: String) async throws -> (statusCode: Int, body: String) { + private func webViewFetch(_ path: String) async throws -> (Int, String) { guard let wv = apiWebView else { throw AppError.detail("no api webview") } return try await withCheckedThrowingContinuation { cont in let delegate = APIFetchDelegate(continuation: cont)