From 6e09ee0b73ada667bad23d4896bf5d81ffd17938 Mon Sep 17 00:00:00 2001 From: Danny Miller Date: Sun, 12 May 2024 16:10:36 -0400 Subject: [PATCH] fix google jsonld search issue --- pages/[subdomain]/level/[username]/[slugName].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/[subdomain]/level/[username]/[slugName].tsx b/pages/[subdomain]/level/[username]/[slugName].tsx index c8249440a..44680cb38 100644 --- a/pages/[subdomain]/level/[username]/[slugName].tsx +++ b/pages/[subdomain]/level/[username]/[slugName].tsx @@ -335,7 +335,7 @@ export default function LevelPage({ _collection, _level, reqUser }: LevelProps) bestRating: 100, worstRating: 0, ratingValue: Math.round(100 * level.calc_reviews_score_laplace), - ratingCount: level.calc_reviews_count, + ratingCount: Math.max(1, level.calc_reviews_count), }} datePublished={level.ts && new Date(level.ts * 1000).toISOString() || ''}