diff --git a/packages/ketcher-core/src/domain/entities/Sugar.ts b/packages/ketcher-core/src/domain/entities/Sugar.ts index e6b65fd78c..c497b70c20 100644 --- a/packages/ketcher-core/src/domain/entities/Sugar.ts +++ b/packages/ketcher-core/src/domain/entities/Sugar.ts @@ -74,6 +74,13 @@ export class Sugar extends BaseMonomer { return 'R2'; } + if ( + otherMonomer.isAttachmentPointExistAndFree('R2') && + this.isAttachmentPointExistAndFree('R1') + ) { + return 'R1'; + } + if ( !otherMonomer.isAttachmentPointExistAndFree('R1') && this.isAttachmentPointExistAndFree('R1')