diff --git a/components/lib/avatar/Avatar.vue b/components/lib/avatar/Avatar.vue index b65ad1cfb..83254d6fc 100644 --- a/components/lib/avatar/Avatar.vue +++ b/components/lib/avatar/Avatar.vue @@ -3,7 +3,7 @@ {{ label }} - + diff --git a/components/lib/avatar/BaseAvatar.vue b/components/lib/avatar/BaseAvatar.vue index 23e3a136a..17b5ca12e 100644 --- a/components/lib/avatar/BaseAvatar.vue +++ b/components/lib/avatar/BaseAvatar.vue @@ -45,7 +45,7 @@ const classes = { } ], label: 'p-avatar-text', - icon: ({ props }) => ['p-avatar-icon', props.icon] + icon: 'p-avatar-icon' }; const { load: loadStyle } = useStyle(styles, { id: 'primevue_avatar_style', manual: true });