mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01:00
Fix my dumb code
This commit is contained in:
parent
bcf8a9c6c7
commit
0dbc76c40a
1 changed files with 2 additions and 2 deletions
|
@ -19,9 +19,9 @@ const _DateTimeFormat = (opts) => {
|
||||||
...formatOpts,
|
...formatOpts,
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
return Intl.DateTimeFormat(loc, opts);
|
return Intl.DateTimeFormat(loc, options);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return Intl.DateTimeFormat(undefined, opts);
|
return Intl.DateTimeFormat(undefined, options);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const DateTimeFormat = mem(_DateTimeFormat);
|
const DateTimeFormat = mem(_DateTimeFormat);
|
||||||
|
|
Loading…
Reference in a new issue