mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 08:30:58 -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