From 11839fd07b5e0a686a1dd4ff2c32ad1c47626582 Mon Sep 17 00:00:00 2001 From: Michal Smaga Date: Mon, 5 Aug 2024 14:30:39 +0200 Subject: [PATCH] If no App Store subscriptions option are available return empty options object (#3188) Task/Issue URL: https://app.asana.com/0/1203936086921904/1207934463147478/f **Description**: In case no App Store subscription objects are available we should return a proper SubscriptionOptions.empty object. --- .../UserScripts/SubscriptionPagesUseSubscriptionFeature.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DuckDuckGo/Subscription/UserScripts/SubscriptionPagesUseSubscriptionFeature.swift b/DuckDuckGo/Subscription/UserScripts/SubscriptionPagesUseSubscriptionFeature.swift index 779f7193da..6333186203 100644 --- a/DuckDuckGo/Subscription/UserScripts/SubscriptionPagesUseSubscriptionFeature.swift +++ b/DuckDuckGo/Subscription/UserScripts/SubscriptionPagesUseSubscriptionFeature.swift @@ -205,7 +205,7 @@ final class SubscriptionPagesUseSubscriptionFeature: Subfeature, ObservableObjec } else { os_log("Failed to obtain subscription options", log: .subscription, type: .error) setTransactionError(.failedToGetSubscriptionOptions) - return nil + return SubscriptionOptions.empty } }