[F] Fix no image icon on missing texture

This commit is contained in:
Azalea
2025-01-08 01:27:00 -05:00
parent cd90f2745a
commit 65cc3095e2
3 changed files with 27 additions and 25 deletions

View File

@@ -153,6 +153,7 @@ export const CHARTJS_OPT: ChartOptions<'line'> = {
export const pfpNotFound = (e: Event) => (e.target as HTMLImageElement).src = DEFAULT_PFP
export const coverNotFound = (e: Event) => (e.target as HTMLImageElement).src = "/assets/imgs/no_cover.jpg"
export const removeImg = (e: Event) => (e.target as HTMLImageElement).style.display = 'none'
/**