From be7ea71390f8fffe9c301a1c460a138d5f5c66a4 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 26 Aug 2024 21:22:57 +0100 Subject: [PATCH] Rating on the discover page --- src/components/Rating/Rating.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Rating/Rating.tsx b/src/components/Rating/Rating.tsx index dfff6f8b5..635a2ab5c 100644 --- a/src/components/Rating/Rating.tsx +++ b/src/components/Rating/Rating.tsx @@ -50,14 +50,14 @@ export function Rating(props: RatingProps) { ); })} {(props.total || 0) > 0 && ( - - {decimalIfNeeded(Number(props.rating!))} - - )} - {(props.total || 0) > 0 && ( - - ({Intl.NumberFormat('en-US').format(props.total!)}) - + <> + + {decimalIfNeeded(Number(props.rating!))} + + + ({Intl.NumberFormat('en-US').format(props.total!)}) + + )} );