Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Update AccountHandler.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobortolan authored Sep 13, 2023
1 parent 0efb189 commit 92e4cb5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mobile/Networking/AccountHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,7 @@ class AccountHandler {

static func updateAccount(accessToken: String, user: UserUpdateRequestBody, completion: @escaping (Result<APIResponse, APIError>) -> Void) {
print("Started updating account with: \naccess_token: \(accessToken)")
guard let rootUrl = ProcessInfo.processInfo.environment["ROOT_URL"],
let preferencesPath = ProcessInfo.processInfo.environment["USER_PATH"],
let urlComponents = URLComponents(string: rootUrl + preferencesPath) else {
guard let urlComponents = URLComponents(string: Routes.ROOT_URL + Routes.USER_PATH) else {
completion(.failure(APIError.invalidURL))
return
}
Expand Down

0 comments on commit 92e4cb5

Please sign in to comment.