From 1ddd740b20297e55541cb81670503318cd63939a Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Fri, 2 Aug 2024 14:51:17 +0800 Subject: [PATCH] fix(directory): fixed incorrect count to new live2ds --- directory/src/routes/path/Home.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/directory/src/routes/path/Home.jsx b/directory/src/routes/path/Home.jsx index 22f0b4f..bc2952f 100644 --- a/directory/src/routes/path/Home.jsx +++ b/directory/src/routes/path/Home.jsx @@ -175,6 +175,9 @@ export default function Home() {
{officalUpdate.length - operators.length} {i18n("new_op_wait_to_update")}
{officalUpdate[officalUpdate.dates[0]].map((entry, index) => { + if (index >= officalUpdate.length - operators.length) { + return null + } return (