Rating on the discover page

pull/6817/head
Kamran Ahmed 8 months ago
parent 9f14e83eb4
commit be7ea71390
  1. 4
      src/components/Rating/Rating.tsx

@ -50,14 +50,14 @@ export function Rating(props: RatingProps) {
); );
})} })}
{(props.total || 0) > 0 && ( {(props.total || 0) > 0 && (
<>
<span className="ml-1.5 text-xs font-medium text-gray-400"> <span className="ml-1.5 text-xs font-medium text-gray-400">
{decimalIfNeeded(Number(props.rating!))} {decimalIfNeeded(Number(props.rating!))}
</span> </span>
)}
{(props.total || 0) > 0 && (
<span className="ml-1 text-xs text-gray-400"> <span className="ml-1 text-xs text-gray-400">
({Intl.NumberFormat('en-US').format(props.total!)}) ({Intl.NumberFormat('en-US').format(props.total!)})
</span> </span>
</>
)} )}
</div> </div>
); );

Loading…
Cancel
Save