Skip to content

Commit 72d316f

Browse files
Small fix
1 parent 9f1ed92 commit 72d316f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/locale.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type DateFnsLocale = {
5050
/** Create a Locale from a date-fns locale */
5151
export function localeFromDateFnsLocale(dateFnsLocale: DateFnsLocale): InnerLocale {
5252
const locale = getLocaleDefaults()
53-
if (typeof dateFnsLocale?.options?.weekStartsOn === 'number') {
53+
if (typeof dateFnsLocale.options?.weekStartsOn === 'number') {
5454
locale.weekStartsOn = dateFnsLocale.options.weekStartsOn
5555
}
5656
if (dateFnsLocale.localize) {

0 commit comments

Comments
 (0)