Browse Source

no magic value

Sebastian Bittrich 3 years ago
parent
commit
f322169def
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/viewer/ui/strucmotif.tsx

+ 1 - 1
src/viewer/ui/strucmotif.tsx

@@ -217,7 +217,7 @@ class SubmitControls extends PurePluginUIComponent<{}, { isBusy: boolean, residu
 
             if (!contact) {
                 const { residueId } = coordinates[i];
-                alert(`Residue ${residueId.label_seq_id} | ${residueId.label_asym_id} | ${residueId.struct_oper_id} needs to be less than 15 \u212B from another residue - Consider adding more residues to connect far-apart residues.`);
+                alert(`Residue ${residueId.label_seq_id} | ${residueId.label_asym_id} | ${residueId.struct_oper_id} needs to be less than ${MAX_MOTIF_EXTENT} \u212B from another residue - Consider adding more residues to connect far-apart residues.`);
                 return;
             }
         }