diff --git a/src/page/bmi-calculator/index.tsx b/src/page/bmi-calculator/index.tsx index cca041e..e5002c1 100644 --- a/src/page/bmi-calculator/index.tsx +++ b/src/page/bmi-calculator/index.tsx @@ -13,9 +13,9 @@ export default function BmiCalculator() { const [bmi, setBmi] = useState(null) const [bmiCategory, setBmiCategory] = useState("") - const calculateBMI = () => { + const calculateBodyMassIndex = () => { const weightNum = parseFloat(weight) - const heightNum = parseFloat(height) / 100 // Convert cm to meters + const heightNum = parseFloat(height) / 100 // Convert cm to metres if (weightNum > 0 && heightNum > 0) { const bmiValue = weightNum / (heightNum * heightNum) @@ -132,7 +132,7 @@ export default function BmiCalculator() { {/* Action Buttons */}