diff --git a/src/game_pages/detail/components/StickyBottom/index.tsx b/src/game_pages/detail/components/StickyBottom/index.tsx index 796562c..4c3c686 100644 --- a/src/game_pages/detail/components/StickyBottom/index.tsx +++ b/src/game_pages/detail/components/StickyBottom/index.tsx @@ -24,12 +24,12 @@ function isFull(counts) { } = counts; if ( - max_players === current_players && + current_players >= max_players && is_substitute_supported === IsSubstituteSupported.NOTSUPPORT ) { return true; } else if ( - max_players === current_players && + current_players >= max_players && is_substitute_supported === IsSubstituteSupported.SUPPORT ) { return max_substitute_players === current_substitute_count; @@ -45,7 +45,7 @@ function RmbIcon() { function matchNtrpRequestment( target?: string, min?: string, - max?: string + max?: string, ): boolean { // 目标值为空或 undefined if (!target?.trim()) return true; @@ -123,7 +123,7 @@ export default function StickyButton(props) { Taro.navigateTo({ url: `/login_pages/index/index?redirect=${encodeURIComponent( - fullPath + fullPath, )}`, }); } @@ -138,7 +138,7 @@ export default function StickyButton(props) { const matchNtrpReq = matchNtrpRequestment( ntrp_level, skill_level_min, - skill_level_max + skill_level_max, ); const gameManageRef = useRef(); @@ -173,7 +173,7 @@ export default function StickyButton(props) { }, [getCommentCount]); function generateTextAndAction( - user_action_status: null | { [key: string]: boolean } + user_action_status: null | { [key: string]: boolean }, ): | undefined | { text: string | React.FC; action?: () => void; available?: boolean } { @@ -271,7 +271,7 @@ export default function StickyButton(props) { const res = await OrderService.getUnpaidOrder(id); if (res.code === 0) { navto( - `/order_pages/orderDetail/index?id=${res.data.order_info.order_id}` + `/order_pages/orderDetail/index?id=${res.data.order_info.order_id}`, ); } }), @@ -387,7 +387,7 @@ export default function StickyButton(props) {