Skip to content

Commit

Permalink
fix: manual coupling edition (#2384)
Browse files Browse the repository at this point in the history
close #2353
  • Loading branch information
hamed-musallam committed May 26, 2023
1 parent 14de755 commit fb8b576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/modal/editRange/EditRangeModal.tsx
Expand Up @@ -146,14 +146,14 @@ function EditRangeModal({
multiplicity,
coupling: '',
};
if (hasCouplingConstant(multiplicity) && signal?.js) {
if (hasCouplingConstant(multiplicity) && signal?.js.length > 0) {
js = { ...signal.js[counterJ] } as Coupling;
js.coupling = Number(
formatNumber(js.coupling, rangesPreferences.coupling.format),
);
counterJ++;
}
js.multiplicity = translateMultiplet(js.multiplicity || '');
js.multiplicity = translateMultiplet(js.multiplicity || multiplicity);
couplings.push(js);
}
}
Expand Down

0 comments on commit fb8b576

Please sign in to comment.