From 19d2b96f3170f22f1f9cad29c6d39b9bf6e6844a Mon Sep 17 00:00:00 2001 From: Tiago Fonseca Date: Mon, 6 Jan 2025 09:32:15 -0300 Subject: [PATCH] simplifying the code --- frontend/web/components/GithubStar.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/web/components/GithubStar.tsx b/frontend/web/components/GithubStar.tsx index f59fe104d010..8ddf2b74da89 100644 --- a/frontend/web/components/GithubStar.tsx +++ b/frontend/web/components/GithubStar.tsx @@ -51,9 +51,15 @@ const GithubStar: FC = ({}) => { className='btn btn-sm btn-with-icon text-body' rel='noreferrer' > -
+
-
{stars}
+ {stars &&
{stars}
}
)