From 3303509c9aa027df9975a9ef66e8ecd4f0e54f45 Mon Sep 17 00:00:00 2001 From: yezian Date: Tue, 16 Jan 2024 22:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88StreamerCard=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E5=9B=BA=E5=AE=9A=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/StreamerCard/index.jsx | 2 +- screeens/Stream/FeedStream/index.jsx | 2 +- screeens/Stream/FollowStream/index.jsx | 8 ++++++-- screeens/Wallet/index.jsx | 2 +- screeens/WechatWaitingToAdd/HaveNotAddWechat/index.jsx | 1 - 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/components/StreamerCard/index.jsx b/components/StreamerCard/index.jsx index f970cce..91fd869 100644 --- a/components/StreamerCard/index.jsx +++ b/components/StreamerCard/index.jsx @@ -16,7 +16,7 @@ function StreamerCard({ data }) { const blurhash = "LcKUTa%gOYWBYRt6xuoJo~s8V@fk"; return ( - + { - if (followMids.length === 0) return; + if (followMids.length === 0) { + setData((prev) => []); + return; + } + if (data.length === 0 && type === "bottom") return; if (!more) return; try { const apiUrl = process.env.EXPO_PUBLIC_API_URL; @@ -135,7 +139,7 @@ export default function FollowStream() {