diff --git a/src/page/bmi-calculator/index.tsx b/src/page/bmi-calculator/index.tsx index 267a00b..c897bc4 100644 --- a/src/page/bmi-calculator/index.tsx +++ b/src/page/bmi-calculator/index.tsx @@ -12,9 +12,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) @@ -126,7 +126,7 @@ export default function BmiCalculator() { {/* Action Buttons */}