From 64bf4ee4b63288c6c7fd4aba72d19df43cf3f372 Mon Sep 17 00:00:00 2001 From: SabreCat Date: Mon, 19 Dec 2022 16:22:20 -0600 Subject: [PATCH] fix(tests): if singleton event, always provide empty string suffix --- website/server/libs/worldState.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/server/libs/worldState.js b/website/server/libs/worldState.js index 257ab1879f..68e7081bc9 100644 --- a/website/server/libs/worldState.js +++ b/website/server/libs/worldState.js @@ -27,6 +27,9 @@ export function getCurrentEvent () { }); if (!currEvtKey) return null; + if (!common.content.events[currEvtKey].npcImageSuffix) { + common.content.events[currEvtKey].npcImageSuffix = ''; + } return { event: currEvtKey, ...common.content.events[currEvtKey],