diff --git a/apps/web/src/components/common/PointsBadge/index.tsx b/apps/web/src/components/common/PointsBadge/index.tsx index 99512421a..3c26fff21 100644 --- a/apps/web/src/components/common/PointsBadge/index.tsx +++ b/apps/web/src/components/common/PointsBadge/index.tsx @@ -19,7 +19,7 @@ const { Text, Paragraph } = Typography const PointsBadge: React.FC = () => { const navigate = useNavigate() - const { balance, subscription, init, loading } = usePointsStore() + const { balance, init, loading } = usePointsStore() useEffect(() => { if (!balance) init() @@ -30,11 +30,11 @@ const PointsBadge: React.FC = () => { const zero = bal === 0 const isMember = !!balance?.is_member const memberLabel = isMember - ? subscription?.member_type === "yearly" + ? balance?.member_type === "yearly" ? "年卡会员" - : subscription?.member_type === "quarterly" + : balance?.member_type === "quarterly" ? "季卡会员" - : subscription?.member_type === "monthly" + : balance?.member_type === "monthly" ? "月卡会员" : "付费会员" : "免费会员"