| if (unitName == "kg" || unitName == "g") { | if (unitName == "kg" || unitName == "g") { | ||||
| currentUnits = ["kg", "g"]; | currentUnits = ["kg", "g"]; | ||||
| selectedUnit = unitName; | selectedUnit = unitName; | ||||
| } else if (unitName == "l" || unitName == "m") { | |||||
| } else if (unitName == "l" || unitName == "ml") { | |||||
| currentUnits = ["l", "ml"]; | currentUnits = ["l", "ml"]; | ||||
| selectedUnit = unitName; | selectedUnit = unitName; | ||||
| } else if (unitName == "m" || unitName == "cm" || unitName == "mm") { | } else if (unitName == "m" || unitName == "cm" || unitName == "mm") { |