mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
Fix icon prefix issue
This commit is contained in:
@@ -74,7 +74,7 @@ export class ChartSidebarComponent implements OnInit {
|
|||||||
|
|
||||||
public get hasIcons() { return !!this.searchService.availableIcons }
|
public get hasIcons() { return !!this.searchService.availableIcons }
|
||||||
public get icon() {
|
public get icon() {
|
||||||
const iconName = this.selectedChart!.icon || removeStyleTags(this.selectedChart!.charter ?? 'N/A').toLowerCase() + '.'
|
const iconName = (this.selectedChart!.icon || removeStyleTags(this.selectedChart!.charter ?? 'N/A').toLowerCase()) + '.'
|
||||||
if (iconName === 'unknown charter') { return null }
|
if (iconName === 'unknown charter') { return null }
|
||||||
return this.searchService.availableIcons?.find(i => i.toLowerCase().startsWith(iconName)) || null
|
return this.searchService.availableIcons?.find(i => i.toLowerCase().startsWith(iconName)) || null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user