mirror of
https://github.com/wanderer-industries/wanderer
synced 2026-10-17 08:59:16 +00:00
getSpawnTypeString returns '' when currentSystemStatics is undefined, instead of falling back to Wandering
This commit is contained in:
1 parent
0678d0f631
commit
dc8cdbe0b2
1 file changed
+2
-1
@@ -46,7 +46,8 @@ const getSpawnTypeString = (
|
||||
if (signatureType === 'K162') {
|
||||
return mapping?.spawn_k162 !== undefined ? mapping.spawn_k162 : 'K162';
|
||||
}
|
||||
if (currentSystemStatics?.includes(signatureType)) {
|
||||
if (currentSystemStatics === undefined) return '';
|
||||
if (currentSystemStatics.includes(signatureType)) {
|
||||
return mapping?.spawn_static !== undefined ? mapping.spawn_static : 'Static';
|
||||
}
|
||||
return mapping?.spawn_wandering !== undefined ? mapping.spawn_wandering : 'Wandering';
|
||||
|
||||
Reference in new issue
Block a user