Skip to content

Commit 2e6ff53

Browse files
committed
Check for locale on panelBody
1 parent 5e8b95e commit 2e6ff53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/panels/PanelBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function PanelBody<DateType>({
8282
const lastDateTitle =
8383
picker === 'year'
8484
? Number(title) % 10 === 9
85-
: getLastDay(generateConfig, currentDate, locale);
85+
: locale && getLastDay(generateConfig, currentDate, locale);
8686

8787
row.push(
8888
<td

0 commit comments

Comments
 (0)