mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 07:22:10 -05:00
Fix: Defaults / dayjs will not always be present.
This commit is contained in:
parent
841320aab7
commit
8e0e226ec6
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ function Locale({ children, locale }: Props) {
|
|||
|
||||
function transformLanguage(obj: { [key: string]: any }) {
|
||||
const dayjs = obj.dayjs;
|
||||
const defaults = dayjs.defaults;
|
||||
const defaults = dayjs?.defaults;
|
||||
|
||||
const twelvehour = defaults?.twelvehour === 'yes' || true;
|
||||
const separator: '/' | '-' | '.' = defaults?.date_separator ?? '/';
|
||||
|
|
Loading…
Reference in a new issue