Return after ineligible error in digest sign up so its raised correctly

This commit is contained in:
Jackson Harper
2024-07-12 16:58:09 +08:00
parent 57f4401d0b
commit 6aeee29988

View File

@ -50,6 +50,7 @@ public extension DataService {
case let .error(errorCode: errorCode):
if errorCode == .ineligible {
continuation.resume(throwing: IneligibleError.message(messageText: "You are not eligible for this feature."))
return
}
continuation.resume(throwing: BasicError.message(messageText: errorCode.rawValue))
}