Skip to content
Snippets Groups Projects
Commit e106f5bc authored by unknown's avatar unknown
Browse files

fix: load has to be over zero too

parent b0b3cb9a
Branches
Tags
3 merge requests!435WIP: 1.4.0,!427fix(loadConverter): Loads below 0.01cts now equal 0.01cts,!421feat(chore): 1.4.0
......@@ -12,7 +12,7 @@ export default class ConverterService {
public LoadToEuro(load: number, fluidType: FluidType): number {
let convertedLoad: number = load * this._fluidConfig[fluidType].coefficient
if (convertedLoad < 0.01) {
if (convertedLoad > 0 && convertedLoad < 0.01) {
convertedLoad = 0.01
}
return convertedLoad
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment