From 217e11d6051b86fd57016eea4a68b3bbf4eba1d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Thu, 15 Jun 2023 10:43:45 +0800 Subject: [PATCH] bug fix --- src/forge/Information/Component/contributor.jsx | 4 +++- src/forge/Information/Pages/zoneVIP.jsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/forge/Information/Component/contributor.jsx b/src/forge/Information/Component/contributor.jsx index dcfd83547..7b94574fc 100644 --- a/src/forge/Information/Component/contributor.jsx +++ b/src/forge/Information/Component/contributor.jsx @@ -17,7 +17,9 @@ function Contributor(props) { const [ showList, setShowList] = useState([]); function initList() { - setShowList([].concat(personList, new Array(personList.length % 3 - 1).fill({}))) + if (personList.length !== 3) { + setShowList([].concat(personList, new Array(personList.length % 3 - 1).fill({}))) + } } useEffect(()=>{ diff --git a/src/forge/Information/Pages/zoneVIP.jsx b/src/forge/Information/Pages/zoneVIP.jsx index aa004fe1b..b3d522d66 100644 --- a/src/forge/Information/Pages/zoneVIP.jsx +++ b/src/forge/Information/Pages/zoneVIP.jsx @@ -120,7 +120,9 @@ function ZoneVIP(props){ } : - + ( + temp === 'zone1' ? : + ) } )