diff --git a/webclient/src/Article.js b/webclient/src/Article.js index 1aec47e..d2e6493 100644 --- a/webclient/src/Article.js +++ b/webclient/src/Article.js @@ -57,11 +57,13 @@ function Article({ cache }) { return (
-
- Connection error? Click to expand. -

{error}

- {story &&

Loaded article from cache.

} -
+ {error && +
+ Connection error? Click to expand. +

{error}

+ {story &&

Loaded article from cache.

} +
+ } {story ?
diff --git a/webclient/src/Feed.js b/webclient/src/Feed.js index 4c035e1..3482355 100644 --- a/webclient/src/Feed.js +++ b/webclient/src/Feed.js @@ -96,10 +96,12 @@ function Feed({ updateCache }) { QotNews -
- Connection error? Click to expand. -

{error}

-
+ {error && +
+ Connection error? Click to expand. +

{error}

+
+ } {stories ?
{stories.map(x =>