From 9b85f0d02160fe61b05410e1da8bfb671fc49424 Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Fri, 17 May 2024 15:34:21 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=20return=20null=20=E0=B9=80=E0=B8=A1=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88?= =?UTF-8?q?=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=AA=E0=B8=AD=E0=B8=94=E0=B8=84?= =?UTF-8?q?=E0=B8=A5=E0=B9=89=E0=B8=AD=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interfaces/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/utils.ts b/src/interfaces/utils.ts index 5537734a..c8270771 100644 --- a/src/interfaces/utils.ts +++ b/src/interfaces/utils.ts @@ -1,5 +1,5 @@ export function calculateAge(start: Date, end = new Date()) { - if (start.getTime() > end.getTime()) return; + if (start.getTime() > end.getTime()) return null; let year = end.getFullYear() - start.getFullYear(); let month = end.getMonth() - start.getMonth();