fix: 估算收益未设置持仓金额显示问题

This commit is contained in:
hzm
2026-03-12 10:03:21 +08:00
parent 063be7d08e
commit 966c853eb5
3 changed files with 4 additions and 4 deletions

View File

@@ -752,7 +752,7 @@ export default function MobileFundTable({
{masked && hasProfit ? '******' : amountStr}
</FitText>
</span>
{percentStr && !masked ? (
{hasProfit && percentStr && !masked ? (
<span className={`${cls} estimate-profit-percent`} style={{ display: 'block', width: '100%', fontSize: '0.75em', opacity: 0.9, fontWeight: 500 }}>
<FitText maxFontSize={11} minFontSize={9}>
{percentStr}

View File

@@ -682,7 +682,7 @@ export default function PcFundTable({
<FitText className={cls} style={{ fontWeight: 700, display: 'block' }} maxFontSize={14} minFontSize={10}>
{masked && hasProfit ? '******' : amountStr}
</FitText>
{percentStr && !masked ? (
{hasProfit && percentStr && !masked ? (
<span className={`${cls} estimate-profit-percent`} style={{ display: 'block', fontSize: '0.75em', opacity: 0.9, fontWeight: 500 }}>
<FitText maxFontSize={11} minFontSize={9}>
{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({