修复 球局详情 满员状态不对问题

This commit is contained in:
张成
2025-11-05 17:39:23 +08:00
parent dc981c44e8
commit c9818b57dc
2 changed files with 6 additions and 2 deletions

View File

@@ -20,9 +20,11 @@ function isFull(counts) {
current_substitute_count, current_substitute_count,
is_substitute_supported, is_substitute_supported,
} = counts; } = counts;
if (max_players === current_players) {
if (max_players === current_players &&is_substitute_supported === IsSubstituteSupported.NOTSUPPORT) {
return true; return true;
} else if (is_substitute_supported === IsSubstituteSupported.SUPPORT) { }
else if (max_players === current_players &&is_substitute_supported === IsSubstituteSupported.SUPPORT) {
return max_substitute_players === current_substitute_count; return max_substitute_players === current_substitute_count;
} }
@@ -111,6 +113,7 @@ export default function StickyButton(props) {
is_substituting, is_substituting,
waiting_start, waiting_start,
} = user_action_status || {}; } = user_action_status || {};
if (MATCH_STATUS.CANCELED === match_status) { if (MATCH_STATUS.CANCELED === match_status) {
return { return {
text: "活动已取消", text: "活动已取消",

View File

@@ -7,6 +7,7 @@ import "./index.scss";
const HomePage: React.FC = () => { const HomePage: React.FC = () => {
const { fetchUserInfo } = useUserActions(); const { fetchUserInfo } = useUserActions();
useEffect(() => { useEffect(() => {
const handleLoginRedirect = async () => { const handleLoginRedirect = async () => {
const login_status = check_login_status(); const login_status = check_login_status();