From e5f169eae17e6e8147749e26afddb4b78789ca82 Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Thu, 6 Jul 2023 20:28:06 +0200 Subject: [PATCH] Recognize out of data paratime data (again) --- .changelog/686.bugfix.md | 1 + src/app/components/OfflineBanner/hook.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .changelog/686.bugfix.md diff --git a/.changelog/686.bugfix.md b/.changelog/686.bugfix.md new file mode 100644 index 000000000..3f57a7d75 --- /dev/null +++ b/.changelog/686.bugfix.md @@ -0,0 +1 @@ +Recognize out of data paratime data (again) diff --git a/src/app/components/OfflineBanner/hook.ts b/src/app/components/OfflineBanner/hook.ts index fb00b4b2b..9d2385c54 100644 --- a/src/app/components/OfflineBanner/hook.ts +++ b/src/app/components/OfflineBanner/hook.ts @@ -32,7 +32,7 @@ export const useRuntimeFreshness = (scope: SearchScope): FreshnessInfo => { } } - if (isApiReachable) { + if (!isApiReachable) { // The error state will be handled by NetworkOfflineBanner, // no need to display another banner whining about obsolete data. return {