Skip to content

Commit

Permalink
Update Mappers.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
SpertsyanKM authored Aug 30, 2024
1 parent 22b8820 commit 3fff5ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/sandwich/Mappers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ extension NSError {
let authErrorCodes = QNUtils.authErrorsCodes() as? [NSNumber] ?? []

if (code >= 500 && code < 600) {
strCode = apiErrorCodes[Qonversion.APIError.internalError.rawValue]
strCode = apiErrorCodes[Qonversion.APIError.internalError.rawValue]
} else if (authErrorCodes.contains { $0.intValue == code }) {
strCode = apiErrorCodes[Qonversion.APIError.invalidCredentials.rawValue]
strCode = apiErrorCodes[Qonversion.APIError.invalidCredentials.rawValue]
}
}

Expand Down

0 comments on commit 3fff5ea

Please sign in to comment.