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

Update Volume calculation based on molarity

parent e9f99c62
......@@ -530,7 +530,7 @@ export default class Sample extends Element {
return amount_g;
case 'l': {
if (this.has_molarity) {
return amount_g / this.molarity_value;
return this.amount_mol * this.molarity_value;
} else if (this.has_density) {
const density = this.density;
return amount_g / (density * 1000);
......
Supports Markdown
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