mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
fix(tests): if singleton event, always provide empty string suffix
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user