diff --git a/frontend/web/components/GithubStar.tsx b/frontend/web/components/GithubStar.tsx index 3fbf6a2a475c..eed95c7816c5 100644 --- a/frontend/web/components/GithubStar.tsx +++ b/frontend/web/components/GithubStar.tsx @@ -21,6 +21,7 @@ const GithubStar: FC = ({}) => { .then(function (res) { setStars(res.stargazers_count) }) + .catch(() => {}) } }, [planName]) @@ -29,20 +30,24 @@ const GithubStar: FC = ({}) => { } return ( - <> - +
-
- -
{stars}
-
-
- + + {stars &&
{stars}
} +
+ ) }