mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-19 12:18:51 +00:00
fix(tests): if singleton event, always provide empty string suffix
This commit is contained in:
parent
fd9d738cc6
commit
64bf4ee4b6
1 changed files with 3 additions and 0 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Reference in a new issue