From 66c11b9ca7c514aecb02369f8779cf18bf8db9ff Mon Sep 17 00:00:00 2001 From: Sam Symons Date: Sun, 24 Dec 2023 15:56:05 -0800 Subject: [PATCH] Fix the Privacy Pro build, attempt #2. --- .../NavigationBar/View/NavigationBarViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift b/DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift index e39d858301..933ff3df51 100644 --- a/DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift +++ b/DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift @@ -28,7 +28,7 @@ import NetworkProtectionUI #endif #if SUBSCRIPTION -import Account +import Subscription import SubscriptionUI #endif @@ -336,7 +336,7 @@ final class NavigationBarViewController: NSViewController { let accountManager = AccountManager() let networkProtectionTokenStorage = NetworkProtectionKeychainTokenStore() - if accountManager.token != nil && (try? networkProtectionTokenStorage.fetchToken()) == nil { + if accountManager.authToken != nil && (try? networkProtectionTokenStorage.fetchToken()) == nil { print("[NetP Subscription] Got access token but not auth token, meaning token exchange failed") return }