From 9420f9a415c59ee1766028078c9e92fb5de6bea8 Mon Sep 17 00:00:00 2001 From: mpwind5 Date: Thu, 19 Dec 2019 12:23:38 +1100 Subject: [PATCH] =?UTF-8?q?solved=20=E2=80=9CArray=20size=20is=20not=20a?= =?UTF-8?q?=20small=20enough=20positive=20integer.=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Month/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Month/index.js b/Month/index.js index 17ebf6a..25b562d 100644 --- a/Month/index.js +++ b/Month/index.js @@ -109,7 +109,7 @@ export default class Month extends Component { let subColor = {color: color.subColor}; let titleText = this._getMonthText(); let dayList = this._getDayList(month.clone()); - let rowArray = new Array(dayList.length / 7).fill(''); + let rowArray = new Array(Math.floor(dayList.length / 7)).fill(''); return (