From 05aa523f3a9fae57dcac84d090c7cf295e383b91 Mon Sep 17 00:00:00 2001
From: jessop <jessop@lbry.com>
Date: Sat, 25 Apr 2020 16:20:00 -0400
Subject: [PATCH] prevent loading tv degrade components in app

---
 ui/component/app/view.jsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ui/component/app/view.jsx b/ui/component/app/view.jsx
index 2dc4712c5..10b5e17b7 100644
--- a/ui/component/app/view.jsx
+++ b/ui/component/app/view.jsx
@@ -21,7 +21,7 @@ import OpenInAppLink from 'lbrytv/component/openInAppLink';
 import YoutubeWelcome from 'lbrytv/component/youtubeReferralWelcome';
 import NagDegradedPerformance from 'lbrytv/component/nag-degraded-performance';
 import NagDataCollection from 'lbrytv/component/nag-data-collection';
-// @endif
+
 import {
   useDegradedPerformance,
   STATUS_OK,
@@ -29,6 +29,7 @@ import {
   STATUS_FAILING,
   STATUS_DOWN,
 } from 'lbrytv/effects/use-degraded-performance';
+// @endif
 export const MAIN_WRAPPER_CLASS = 'main-wrapper';
 // @if TARGET='app'
 export const IS_MAC = process.platform === 'darwin';
@@ -110,8 +111,8 @@ function App(props: Props) {
   const previousRewardApproved = usePrevious(isRewardApproved);
   // @if TARGET='web'
   const [showAnalyticsNag, setShowAnalyticsNag] = usePersistedState('analytics-nag', true);
-  // @endif
   const [lbryTvApiStatus, setLbryTvApiStatus] = useState(STATUS_OK);
+  // @endif
   const { pathname, hash, search } = props.location;
   const showUpgradeButton = autoUpdateDownloaded || (process.platform === 'linux' && isUpgradeAvailable);
   // referral claiming