ryohek 5 năm trước cách đây
mục cha
commit
72d34ce87c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/client/js/models/BootstrapGrid.js

+ 1 - 1
src/client/js/models/BootstrapGrid.js

@@ -14,7 +14,7 @@ export default class BootstrapGrid {
     if (colsRatios.length < 2) {
       throw new Error('Incorrect array length of cols ratios');
     }
-    const ratiosTotal = colsRatios.reduce((sum, ratio) => { return sum += ratio }, 0);
+    const ratiosTotal = colsRatios.reduce((total, ratio) => { return total + ratio }, 0);
     if (ratiosTotal !== 12) {
       throw new Error('Incorrect cols ratios value');
     }