修复 球局详情 满员状态不对问题
This commit is contained in:
@@ -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: "活动已取消",
|
||||
|
||||
@@ -7,6 +7,7 @@ import "./index.scss";
|
||||
const HomePage: React.FC = () => {
|
||||
const { fetchUserInfo } = useUserActions();
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
const handleLoginRedirect = async () => {
|
||||
const login_status = check_login_status();
|
||||
|
||||
Reference in New Issue
Block a user