fix: format agent average rating to one decimal place
This commit is contained in:
@@ -358,7 +358,7 @@ export default function CmsPage() {
|
|||||||
|
|
||||||
let location = [profile?.city, profile?.state].filter(Boolean).join(', ');
|
let location = [profile?.city, profile?.state].filter(Boolean).join(', ');
|
||||||
let experience = agent?.yearsOfExperience ? `${agent.yearsOfExperience}+ years` : '';
|
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'];
|
const EXPERIENCE_SLUGS = ['years_in_business', 'years_of_experience'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user