Forráskód Böngészése

feat: 优化显示

year 2 hete
szülő
commit
6fc4834143

+ 1 - 1
src/app/[locale]/(TabBar)/[[...share]]/_home/HomePrize.tsx

@@ -18,7 +18,7 @@ const HomePrize: FC<Props> = (props) => {
     const t = useTranslations("HomePage");
     const tt = useTranslations("Game");
 
-    console.log(data);
+    if (!data?.length) return null;
 
     return (
         <div className={"my-[0.0694rem] px-[.1rem] pb-[.0rem]"}>

+ 1 - 1
src/components/Layout/Sidebar.tsx

@@ -339,7 +339,7 @@ const Sidebar: FC<PropsWithChildren<Props>> = (props) => {
                             ></div>
                         )}
                     </div>
-                    {walletCfg?.length && (
+                    {!!walletCfg?.length && (
                         <>
                             <div className={clsx(styles.sideTitle, "mt-[.06rem]")}>
                                 <i