From 6aeee29988bec3dd85de6a951137d0b787d9813c Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 12 Jul 2024 16:58:09 +0800 Subject: [PATCH] Return after ineligible error in digest sign up so its raised correctly --- .../Sources/Services/DataService/Mutations/OptIntoFeature.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/OptIntoFeature.swift b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/OptIntoFeature.swift index 35f427da0..68ce7fa65 100644 --- a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/OptIntoFeature.swift +++ b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/OptIntoFeature.swift @@ -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)) }