From 0dbc76c40a3208561695dd3a4bcc67b246e3eb46 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 20 Aug 2024 20:34:42 +0800 Subject: [PATCH] Fix my dumb code --- src/utils/nice-date-time.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/nice-date-time.js b/src/utils/nice-date-time.js index f1376aab..a1d5baff 100644 --- a/src/utils/nice-date-time.js +++ b/src/utils/nice-date-time.js @@ -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);