diff --git a/package.json b/package.json index 221f12752..5b9b88670 100644 --- a/package.json +++ b/package.json @@ -224,7 +224,7 @@ "yarn": "^1.3" }, "lbrySettings": { - "lbrynetDaemonVersion": "0.88.0", + "lbrynetDaemonVersion": "0.92.0", "lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-OSNAME.zip", "lbrynetDaemonDir": "static/daemon", "lbrynetDaemonFileName": "lbrynet", diff --git a/ui/component/syncFatalError/view.jsx b/ui/component/syncFatalError/view.jsx index c5777ffe0..4d124ea4c 100644 --- a/ui/component/syncFatalError/view.jsx +++ b/ui/component/syncFatalError/view.jsx @@ -3,8 +3,10 @@ import * as ICONS from 'constants/icons'; import React from 'react'; import Button from 'component/button'; import Yrbl from 'component/yrbl'; -import { STATUS_DEGRADED, STATUS_FAILING, STATUS_DOWN } from 'web/effects/use-degraded-performance'; import { SITE_HELP_EMAIL } from 'config'; +// @if TARGET='web' +import { STATUS_DEGRADED, STATUS_FAILING, STATUS_DOWN } from 'web/effects/use-degraded-performance'; +// @endif type Props = { lbryTvApiStatus: string, @@ -13,9 +15,12 @@ type Props = { export default function SyncFatalError(props: Props) { const { lbryTvApiStatus } = props; - const downTime = + let downTime = false; + // @if TARGET='web' + downTime = IS_WEB && (lbryTvApiStatus === STATUS_DEGRADED || lbryTvApiStatus === STATUS_FAILING || lbryTvApiStatus === STATUS_DOWN); + // @endif return (
diff --git a/web/effects/use-degraded-performance.js b/web/effects/use-degraded-performance.js index 99e8a8d14..bf00f0487 100644 --- a/web/effects/use-degraded-performance.js +++ b/web/effects/use-degraded-performance.js @@ -11,7 +11,7 @@ export const STATUS_DEGRADED = 'degraded'; export const STATUS_FAILING = 'failing'; export const STATUS_DOWN = 'down'; -const getParams = user => { +const getParams = (user) => { const headers = {}; const token = getAuthToken(); if (token && user.has_verified_email) { @@ -31,8 +31,8 @@ export function useDegradedPerformance(onDegradedPerformanceCallback, user) { const STATUS_ENDPOINT = `${SDK_API_PATH}/status`.replace('v1', 'v2'); fetchWithTimeout(STATUS_TIMEOUT_LIMIT, fetch(STATUS_ENDPOINT, getParams(user))) - .then(response => response.json()) - .then(status => { + .then((response) => response.json()) + .then((status) => { if (status.general_state !== STATUS_OK) { onDegradedPerformanceCallback(STATUS_FAILING); }