diff --git a/booklore-ui/src/app/features/library-creator/library-creator.component.ts b/booklore-ui/src/app/features/library-creator/library-creator.component.ts index 5c5ac6f07..32cb95afb 100644 --- a/booklore-ui/src/app/features/library-creator/library-creator.component.ts +++ b/booklore-ui/src/app/features/library-creator/library-creator.component.ts @@ -68,7 +68,8 @@ export class LibraryCreatorComponent implements OnInit { if (iconType === 'CUSTOM_SVG') { this.selectedIcon = {type: 'CUSTOM_SVG', value: icon}; } else { - this.selectedIcon = {type: 'PRIME_NG', value: `pi pi-${icon}`}; + const value = icon.slice(0, 6) === 'pi pi-' ? icon : `pi pi-${icon}`; + this.selectedIcon = {type: 'PRIME_NG', value: value}; } this.watch = watch;