diff --git a/ketcher-autotests/tests/Macromolecule-editor/Sequence-Mode/sequence-mode-edit-in-rna-builder.spec.ts-snapshots/Sequence-mode-edit-in-RNA-Builder-Select-two-nucleotides-and-modify-sugar-and-phosphate-5-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Sequence-Mode/sequence-mode-edit-in-rna-builder.spec.ts-snapshots/Sequence-mode-edit-in-RNA-Builder-Select-two-nucleotides-and-modify-sugar-and-phosphate-5-chromium-linux.png index 80c50ace45..910d5db3b9 100644 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Sequence-Mode/sequence-mode-edit-in-rna-builder.spec.ts-snapshots/Sequence-mode-edit-in-RNA-Builder-Select-two-nucleotides-and-modify-sugar-and-phosphate-5-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Sequence-Mode/sequence-mode-edit-in-rna-builder.spec.ts-snapshots/Sequence-mode-edit-in-RNA-Builder-Select-two-nucleotides-and-modify-sugar-and-phosphate-5-chromium-linux.png differ diff --git a/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/UpdateSequenceInRNABuilder.test.tsx b/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/UpdateSequenceInRNABuilder.test.tsx index c29babf6a4..e1f9bd27e0 100644 --- a/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/UpdateSequenceInRNABuilder.test.tsx +++ b/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/UpdateSequenceInRNABuilder.test.tsx @@ -38,7 +38,7 @@ describe('UpdateSequenceInRNABuilder modal component', () => { , { rnaBuilder: { - sequenceSelection: [labeledNucleotide], + sequenceSelection: [labeledNucleotide, labeledNucleotide], }, }, ), diff --git a/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/UpdateSequenceInRNABuilder.tsx b/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/UpdateSequenceInRNABuilder.tsx index d44b399065..11bc8b1bce 100644 --- a/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/UpdateSequenceInRNABuilder.tsx +++ b/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/UpdateSequenceInRNABuilder.tsx @@ -39,6 +39,7 @@ const UpdateSequenceInRNABuilder = ({ isModalOpen, onClose }: Props) => { const dispatch = useAppDispatch(); const sequenceSelection = useAppSelector(selectSequenceSelection); const editor = useAppSelector(selectEditor); + const countOfSequenceSelection = sequenceSelection.length; const onCloseCallback = useCallback(() => { onClose(); }, [onClose]); @@ -69,7 +70,8 @@ const UpdateSequenceInRNABuilder = ({ isModalOpen, onClose }: Props) => { > - You are going to make multiple changes in your sequence. Are you sure? + You are going to modify {countOfSequenceSelection} nucleotides. Are + you sure? diff --git a/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/__snapshots__/UpdateSequenceInRNABuilder.test.tsx.snap b/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/__snapshots__/UpdateSequenceInRNABuilder.test.tsx.snap index 0e0d9f5507..fdd2b0a7a6 100644 --- a/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/__snapshots__/UpdateSequenceInRNABuilder.test.tsx.snap +++ b/packages/ketcher-macromolecules/src/components/modal/UpdateSequenceInRNABuilder/__snapshots__/UpdateSequenceInRNABuilder.test.tsx.snap @@ -75,7 +75,9 @@ Object {
- You are going to make multiple changes in your sequence. Are you sure? + You are going to modify + 2 + nucleotides. Are you sure?