From 9b66534f6dbe93a5f8536c43219733a201fd6602 Mon Sep 17 00:00:00 2001 From: David Totraev Date: Wed, 2 Oct 2024 13:44:51 +0500 Subject: [PATCH] fix: version info data for loading state --- src/app/context/api/VersionInfo.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/context/api/VersionInfo.tsx b/src/app/context/api/VersionInfo.tsx index 91b3f735..75a5d1cd 100644 --- a/src/app/context/api/VersionInfo.tsx +++ b/src/app/context/api/VersionInfo.tsx @@ -37,7 +37,13 @@ export function VersionInfoProvider({ children }: PropsWithChildren) { } = useBTCTipHeight(); const context = useMemo(() => { - if (!versions || !height) return; + if (!versions || !height) + return { + isApprochingNextVersion: false, + firstActivationHeight: 0, + isError: isHeightError || isVersionError, + isLoading: isVersionLoading || isHeightLoading, + }; return { currentHeight: height,