From e0bf56896514c25787eb5ed194bb68d0d5d9310d Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Thu, 19 Dec 2024 14:23:28 +0800 Subject: [PATCH] fix: lint --- src/lib/utils.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 81743ce..05206dc 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -114,12 +114,9 @@ export function getDaysBetweenDatesWithAutoRenewal({ days: getDaysBetweenDates(endDate, new Date(nowTime).toISOString()), cycleLabel: cycleLabel, remainingPercentage: - getDaysBetweenDates(endDate, new Date(nowTime).toISOString()) / - (30 * months) > - 1 + getDaysBetweenDates(endDate, new Date(nowTime).toISOString()) / (30 * months) > 1 ? 1 - : getDaysBetweenDates(endDate, new Date(nowTime).toISOString()) / - (30 * months), + : getDaysBetweenDates(endDate, new Date(nowTime).toISOString()) / (30 * months), } }