From 679704949eab76b795125929d57d36557822d77f Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 26 Dec 2022 01:02:01 -0800 Subject: [PATCH] Fix broken update checker --- src/components/version.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/version.jsx b/src/components/version.jsx index 9b1d8cdec..34941e68f 100644 --- a/src/components/version.jsx +++ b/src/components/version.jsx @@ -12,7 +12,7 @@ export default function Version() { const revision = process.env.NEXT_PUBLIC_REVISION?.length ? process.env.NEXT_PUBLIC_REVISION : "dev"; const version = process.env.NEXT_PUBLIC_VERSION?.length ? process.env.NEXT_PUBLIC_VERSION : "dev"; - const cachedFetcher = (resource) => cachedFetch(resource, 5).then((res) => res.json()); + const cachedFetcher = (resource) => cachedFetch(resource, 5); const { data: releaseData } = useSWR("https://api.github.com/repos/benphelps/homepage/releases", cachedFetcher);