From d6b4eb3f60486ba51a8e753a8081ea7e9bc22f00 Mon Sep 17 00:00:00 2001
From: RRRyoma <119156952+RRRyoma@users.noreply.github.com>
Date: Thu, 20 Feb 2025 19:21:40 +0900
Subject: [PATCH] =?UTF-8?q?Home=E3=81=A7=E3=83=A6=E3=83=BC=E3=82=B6?=
=?UTF-8?q?=E3=83=BC=E5=8F=96=E5=BE=97=E6=99=82=E3=81=ABloading=E7=94=BB?=
=?UTF-8?q?=E9=9D=A2=E3=81=AB=E3=81=99=E3=82=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/app/home/page.tsx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/web/app/home/page.tsx b/web/app/home/page.tsx
index aed25364..ba4320df 100644
--- a/web/app/home/page.tsx
+++ b/web/app/home/page.tsx
@@ -77,13 +77,13 @@ export default function Home() {
[recommended, controls, backCardControls],
);
- if (recommended == null) {
+ if (data === undefined) {
return ;
}
if (currentUser == null) {
return ;
}
- if (displayedUser == null) {
+ if (recommended.size() === 0) {
return ;
}
if (error) throw error;
@@ -173,4 +173,7 @@ class Queue {
pop(): T | undefined {
return this.store.shift();
}
+ size(): number {
+ return this.store.length;
+ }
}