mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-11-04 17:10:20 +00:00
fix: getDaysBetweenDatesWithAutoRenewal
This commit is contained in:
1 parent
b8f991a80b
commit
3c7640cc82
3 files changed
+13
-2
No files matched your search
@@ -18,7 +18,12 @@ export default function BillingInfo({ parsedData }: { parsedData: PublicNoteData
|
||||
if (parsedData.billingDataMod.endDate.startsWith("0000-00-00")) {
|
||||
isNeverExpire = true
|
||||
} else {
|
||||
daysLeftObject = getDaysBetweenDatesWithAutoRenewal(parsedData.billingDataMod)
|
||||
try {
|
||||
daysLeftObject = getDaysBetweenDatesWithAutoRenewal(parsedData.billingDataMod)
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
return <div className={cn("text-[10px] text-muted-foreground text-red-600")}>剩余时间: 计算出错</div>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user