Skip to content

Commit

Permalink
fix github stars
Browse files Browse the repository at this point in the history
Signed-off-by: jingyang <3161362058@qq.com>
  • Loading branch information
zjy365 committed May 20, 2024
1 parent fa404c3 commit 04f3a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/fastgpt/components/home/CTAButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const CTAButton = ({ locale }: { locale: any }) => {
const { stargazers_count } = await (
await fetch('https://api.github.com/repos/labring/FastGPT', { cache: 'force-cache' })
).json();
setStars(stargazers_count);
setStars(stargazers_count ? stargazers_count : 13 * 1000);
} catch (error) {}
};
getStars();
Expand Down

0 comments on commit 04f3a44

Please sign in to comment.