fix: format agent average rating to one decimal place

This commit is contained in:
pradeepkumar
2026-04-16 07:42:43 +05:30
parent fd774c4a9e
commit be808bcece

View File

@@ -358,7 +358,7 @@ export default function CmsPage() {
let location = [profile?.city, profile?.state].filter(Boolean).join(', ');
let experience = agent?.yearsOfExperience ? `${agent.yearsOfExperience}+ years` : '';
const rating = agent?.averageRating ? String(agent.averageRating) : '';
const rating = agent?.averageRating ? Number(agent.averageRating).toFixed(1) : '';
const EXPERIENCE_SLUGS = ['years_in_business', 'years_of_experience'];