Skip to content

Commit a75b7cb

Browse files
committed
Attempts to fix character portrait preloading
1 parent b5051a7 commit a75b7cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/__tests__/avatar.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ describe('Avatar', () => {
9090

9191
// Simulate animation completion
9292
const motionDivs = screen.getAllByTestId('motion-div')
93-
const damageFlash = motionDivs.find((div) => (div as HTMLDivElement).onanimationend === mockCallback)
93+
const damageFlash = motionDivs.find(
94+
(div) => (div as HTMLDivElement).onanimationend === mockCallback,
95+
)
9496

9597
if ((damageFlash as HTMLDivElement)?.onanimationend) {
9698
;(damageFlash as HTMLDivElement).onanimationend!({} as any)

src/components/character-creation.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import css from './character-creation.module.css'
66
import { resolveModules } from '../helpers/vite'
77
import { Stack } from './stack'
88

9-
// TODO Use import globbing here instead
10-
119
const PLAYER_PORTRAIT_MODULES = import.meta.glob('../images/player-portraits/*.(png|webp)', {
1210
eager: true,
1311
})

0 commit comments

Comments
 (0)