getSpawnTypeString returns '' when currentSystemStatics is undefined, instead of falling back to Wandering

This commit is contained in:
Lee Solway committed 2026-08-23 18:11:20 +01:00
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';