Skip to content

Commit e8a6f89

Browse files
committed
fix(timestamp): on error, weekdayFormatter should return empty formatter, not empty string
1 parent 8f0fd0f commit e8a6f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/utils/Timestamp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ export function getWeekdayFormatter () {
11651165
catch (e) /* istanbul ignore next */ {
11661166
/* eslint-disable-next-line */
11671167
console.error(`Intl.DateTimeFormat: ${e.message} -> day of week: ${ weekday }`)
1168-
return ''
1168+
return emptyFormatter
11691169
}
11701170
}
11711171

0 commit comments

Comments
 (0)