diff --git a/assets/js/hooks/Mapper/components/mapInterface/components/SystemLinkSignatureDialog/SystemLinkSignatureDialog.tsx b/assets/js/hooks/Mapper/components/mapInterface/components/SystemLinkSignatureDialog/SystemLinkSignatureDialog.tsx index 343ec69f..0df136d2 100644 --- a/assets/js/hooks/Mapper/components/mapInterface/components/SystemLinkSignatureDialog/SystemLinkSignatureDialog.tsx +++ b/assets/js/hooks/Mapper/components/mapInterface/components/SystemLinkSignatureDialog/SystemLinkSignatureDialog.tsx @@ -21,8 +21,6 @@ const signatureSettings: Setting[] = [{ key: COSMIC_SIGNATURE, name: 'Show Cosmi export const SystemLinkSignatureDialog = ({ data, setVisible }: SystemLinkSignatureDialogProps) => { const { outCommand } = useMapRootState(); - console.log(data); - const ref = useRef({ outCommand }); ref.current = { outCommand }; @@ -31,8 +29,8 @@ export const SystemLinkSignatureDialog = ({ data, setVisible }: SystemLinkSignat }, [setVisible]); const handleSelect = useCallback( - (signatures: SystemSignature[]) => { - if (!signatures.length) { + (signature: SystemSignature) => { + if (!signature) { return; } @@ -42,7 +40,7 @@ export const SystemLinkSignatureDialog = ({ data, setVisible }: SystemLinkSignat type: OutCommand.linkSignatureToSystem, data: { ...data, - signature_eve_id: signatures[0].eve_id, + signature_eve_id: signature.eve_id, }, }); setVisible(false); diff --git a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx index dbfee337..0a481c64 100644 --- a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx +++ b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx @@ -43,7 +43,7 @@ interface SystemSignaturesContentProps { systemId: string; settings: Setting[]; selectable?: boolean; - onSelect?: (signatures: SystemSignature[]) => void; + onSelect?: (signature: SystemSignature) => void; } export const SystemSignaturesContent = ({ systemId, settings, selectable, onSelect }: SystemSignaturesContentProps) => { const { outCommand } = useMapRootState();