diff --git a/README.md b/README.md index 29d4cdd..46887be 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ 在 Supabase控制台 → Authentication → Sign In / Providers → Auth Providers → email 中,关闭 **Confirm email** 选项。这样用户注册后就不需要再去邮箱点击确认链接了,直接使用验证码登录即可。 -6. 目前项目用到的 sql 语句,查看项目 supabase.sql 文件。 +6. 目前项目用到的 sql 语句,查看项目 /doc/supabase.sql 文件。 更多 Supabase 相关内容查阅官方文档。 diff --git a/app/components/MobileFundTable.jsx b/app/components/MobileFundTable.jsx index 5e9fd74..330fb1d 100644 --- a/app/components/MobileFundTable.jsx +++ b/app/components/MobileFundTable.jsx @@ -752,7 +752,7 @@ export default function MobileFundTable({ {masked && hasProfit ? '******' : amountStr} - {percentStr && !masked ? ( + {hasProfit && percentStr && !masked ? ( {percentStr} diff --git a/app/components/PcFundTable.jsx b/app/components/PcFundTable.jsx index 83fd644..752780c 100644 --- a/app/components/PcFundTable.jsx +++ b/app/components/PcFundTable.jsx @@ -682,7 +682,7 @@ export default function PcFundTable({ {masked && hasProfit ? '******' : amountStr} - {percentStr && !masked ? ( + {hasProfit && percentStr && !masked ? ( {percentStr} @@ -883,7 +883,7 @@ export default function PcFundTable({ }, }, ], - [currentTab, favorites, refreshing, sortBy, showFullFundName, getFundCardProps], + [currentTab, favorites, refreshing, sortBy, showFullFundName, getFundCardProps, masked], ); const table = useReactTable({