mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +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 (!currEvtKey) return null;
|
||||||
|
if (!common.content.events[currEvtKey].npcImageSuffix) {
|
||||||
|
common.content.events[currEvtKey].npcImageSuffix = '';
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
event: currEvtKey,
|
event: currEvtKey,
|
||||||
...common.content.events[currEvtKey],
|
...common.content.events[currEvtKey],
|
||||||
|
|||||||
Reference in New Issue
Block a user