Commit 1bf66b94 authored by pierre.tremouilhac's avatar pierre.tremouilhac
Browse files

Merge branch 'molarity-bug' into 'development'

Update wrong volume calculation from molarity

See merge request ComPlat/chemotion_ELN!459
parents 22b3ab5b a77458ba
......@@ -531,7 +531,7 @@ export default class Sample extends Element {
return amount_g;
case 'l': {
if (this.has_molarity) {
return this.amount_mol * this.molarity_value;
return this.amount_mol / this.molarity_value;
} else if (this.has_density) {
const density = this.density;
return amount_g / (density * 1000);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment