Skip to content

Commit

Permalink
Fix my dumb code
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Aug 20, 2024
1 parent bcf8a9c commit 0dbc76c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/nice-date-time.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0dbc76c

Please sign in to comment.