diff --git a/src/components/Blocks/GoogleReviews/GoogleReviews.tsx b/src/components/Blocks/GoogleReviews/GoogleReviews.tsx
index 2dee614..d0ff036 100644
--- a/src/components/Blocks/GoogleReviews/GoogleReviews.tsx
+++ b/src/components/Blocks/GoogleReviews/GoogleReviews.tsx
@@ -32,9 +32,9 @@ export function GoogleReviews({ data }: GoogleReviewProps) {
diff --git a/src/components/Ratings/CardStarRating.tsx b/src/components/Ratings/CardStarRating.tsx
index 45fe257..5037534 100644
--- a/src/components/Ratings/CardStarRating.tsx
+++ b/src/components/Ratings/CardStarRating.tsx
@@ -1,5 +1,6 @@
import Image from "next/image";
import StarRating from "./StarRating";
+import { limitString } from "@/utils/general";
export interface CardStarRatingProps {
data: {
@@ -12,10 +13,10 @@ export function CardStarRating({ data }: CardStarRatingProps) {
return (
-
-
+
+
-
{data.description}
+
{limitString(data.description)}
);
}
diff --git a/src/utils/general.ts b/src/utils/general.ts
index e69de29..8623424 100644
--- a/src/utils/general.ts
+++ b/src/utils/general.ts
@@ -0,0 +1,3 @@
+export function limitString(text: string) {
+ return `${text.length > 100 ? `${text.slice(0, 100)}...` : text}`;
+}