Skip to content

Commit 375b08c

Browse files
1 parent fd6e1f6 commit 375b08c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/date_utils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,7 @@ export function getLocaleObject(localeSpec) {
336336
}
337337

338338
export function getFormattedWeekdayInLocale(date, formatFunc, locale) {
339-
return typeof formatFunc === "function"
340-
? formatFunc(date, locale)
341-
: formatDate(date, "EEEE", locale);
339+
return formatFunc(formatDate(date, "EEEE", locale));
342340
}
343341

344342
export function getWeekdayMinInLocale(date, locale) {

0 commit comments

Comments
 (0)