diff --git a/assets/js/hooks/Mapper/components/mapRootContent/components/MapSettings/components/BookmarkNameFormatSetting.tsx b/assets/js/hooks/Mapper/components/mapRootContent/components/MapSettings/components/BookmarkNameFormatSetting.tsx index 5c43c114..5a9a0419 100644 --- a/assets/js/hooks/Mapper/components/mapRootContent/components/MapSettings/components/BookmarkNameFormatSetting.tsx +++ b/assets/js/hooks/Mapper/components/mapRootContent/components/MapSettings/components/BookmarkNameFormatSetting.tsx @@ -40,7 +40,7 @@ const VARIABLES = [ { id: '{temporary_name}', desc: 'Temporary name if set' }, { id: '{description}', desc: 'Custom description' }, { id: '{direction}', desc: 'Wormhole direction (e.g., In, Out)' }, - { id: '{spawn}', desc: 'Spawn type for outgoing wormholes (e.g., Static, Wandering)' }, + { id: '{spawn_type}', desc: 'Spawn type for outgoing wormholes (e.g., Static, Wandering)' }, ]; interface CustomMappingInputProps { diff --git a/assets/js/hooks/Mapper/helpers/bookmarkFormatHelper.ts b/assets/js/hooks/Mapper/helpers/bookmarkFormatHelper.ts index 5da4d86b..e54154c0 100644 --- a/assets/js/hooks/Mapper/helpers/bookmarkFormatHelper.ts +++ b/assets/js/hooks/Mapper/helpers/bookmarkFormatHelper.ts @@ -382,8 +382,8 @@ export const formatBookmarkName = ( // Replace {direction} -> incoming (K162) or outgoing (all other types) result = result.replace(/\{direction\}/g, () => getDirectionString(signature.type === 'K162', mapping)); - // Replace {spawn} -> Static or Wandering for outgoing wormholes (empty for K162) - result = result.replace(/\{spawn\}/g, () => getSpawnTypeString(signature.type, currentSystemStatics, mapping)); + // Replace {spawn_type} -> Static or Wandering for outgoing wormholes, or K162 for incoming + result = result.replace(/\{spawn_type\}/g, () => getSpawnTypeString(signature.type, currentSystemStatics, mapping)); // Cleanup whitespace return result.trim().replace(/\s+/g, ' ');