From f5beddee1c881d6d0e89739af17c6121dedf0a0c Mon Sep 17 00:00:00 2001 From: Shammamah Hossain Date: Mon, 28 Oct 2019 14:25:46 -0400 Subject: [PATCH] Use start date, if one is supplied, for initial_visible_month. --- src/utils/convertToMoment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/convertToMoment.js b/src/utils/convertToMoment.js index e64ab7088..38d77ddc8 100644 --- a/src/utils/convertToMoment.js +++ b/src/utils/convertToMoment.js @@ -11,7 +11,7 @@ export default (newProps, momentProps) => { dest[key] = null; if (key === 'initial_visible_month') { - dest[key] = moment(); + dest[key] = newProps['start_date'] ? moment(newProps['start_date']) : moment(); } } else { dest[key] = moment(value);