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

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,
is_substitute_supported,
} = counts;
if (max_players === current_players) {
if (max_players === current_players &&is_substitute_supported === IsSubstituteSupported.NOTSUPPORT) {
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;
}
@@ -111,6 +113,7 @@ export default function StickyButton(props) {
is_substituting,
waiting_start,
} = user_action_status || {};
if (MATCH_STATUS.CANCELED === match_status) {
return {
text: "活动已取消",

View File

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