mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 10:45:41 +03: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,
|
||||
};
|
||||
try {
|
||||
return Intl.DateTimeFormat(loc, opts);
|
||||
return Intl.DateTimeFormat(loc, options);
|
||||
} catch (e) {
|
||||
return Intl.DateTimeFormat(undefined, opts);
|
||||
return Intl.DateTimeFormat(undefined, options);
|
||||
}
|
||||
};
|
||||
const DateTimeFormat = mem(_DateTimeFormat);
|
||||
|
|
Loading…
Reference in a new issue