Commit a77458ba authored by An Nguyen's avatar An Nguyen
Browse files

Update wrong volume calculation from molarity

parent 22b3ab5b
......@@ -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