Skip to content

Commit 0d25920

Browse files
authored
Merge pull request #4030 from AMAN194701/fix/4021-volumetricplanner-box-volume
fix: replace undefined BOX_VOLUME with TOTAL_CAPACITY in VolumetricPlanner
2 parents 68ce6cf + 01ebbaa commit 0d25920

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/VolumetricPlanner.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function VolumetricPlanner() {
1313
const STUDY_LIMIT = { length: 30, width: 30, height: 30, maxWeight: 20 };
1414
const TOTAL_CAPACITY =
1515
STUDY_LIMIT.length * STUDY_LIMIT.width * STUDY_LIMIT.height;
16-
const EFFECTIVE_VOLUME_CAPACITY = BOX_VOLUME * 0.8; // 80% realistic packing threshold
16+
const EFFECTIVE_VOLUME_CAPACITY = TOTAL_CAPACITY * 0.8; // 80% realistic packing threshold
1717

1818
// Calculate cumulative totals
1919
const totalVolume = items.reduce(

0 commit comments

Comments
 (0)