Skip to content

Commit

Permalink
fix: version info data for loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
totraev committed Oct 4, 2024
1 parent 0b64878 commit 9b66534
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/context/api/VersionInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9b66534

Please sign in to comment.