Skip to content

Commit

Permalink
Merge pull request #732 from benphelps/fix-update-checker
Browse files Browse the repository at this point in the history
Fix broken update checker
  • Loading branch information
shamoon authored Dec 26, 2022
2 parents e46d291 + 6797049 commit 9f63a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/version.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9f63a5a

Please sign in to comment.