From 0780b834f713ff9ca37c380e297b51f92f30720c Mon Sep 17 00:00:00 2001 From: Michal Smaga Date: Mon, 5 Aug 2024 13:55:53 +0200 Subject: [PATCH] If no App Store subscriptions option are available return empty options 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 } }