Various pre-launch fixes.
Some checks failed
Test / vitest (push) Successful in 14m0s
Test / playwright (push) Failing after 20m2s
Test / Notify on failure (push) Successful in 3s

This commit is contained in:
Jennie Robinson Faber 2026-05-22 18:53:07 +01:00
parent 246f2023bc
commit 1c3273cee2
9 changed files with 29 additions and 39 deletions

View file

@ -0,0 +1,15 @@
const AVATAR_FILE_NAMES = {
'sweet': 'Sweet',
'mild': 'Mild',
'exasperated': 'Exasperated',
'disbelieving': 'Disbelieving',
'double-take': 'Double-Take',
'wtf': 'WTF',
}
export function ghostieImagePath(avatar) {
if (!avatar) return null
const name = AVATAR_FILE_NAMES[String(avatar).toLowerCase()]
if (!name) return null
return `/ghosties/Ghost-${name}.png`
}