修改满员判定条件

This commit is contained in:
张成
2025-09-18 21:48:58 +08:00
parent 2f5bfc537c
commit 29bc03f242

View File

@@ -231,10 +231,16 @@ function toast(message) {
function isFull(counts) {
const { max_players, current_players, max_substitute_players, current_substitute_count, is_substitute_supported } = counts
if (is_substitute_supported === IsSubstituteSupported.SUPPORT) {
if (max_players === current_players) {
return true
}
else if (is_substitute_supported === IsSubstituteSupported.SUPPORT) {
return max_substitute_players === current_substitute_count
}
return max_players === current_players
return false
}
// 底部操作栏
@@ -749,8 +755,7 @@ function Participants(props) {
<View
className="participants-list-scroll-content"
style={{
width: `${
participants.length * 103 + (participants.length - 1) * 8
width: `${participants.length * 103 + (participants.length - 1) * 8
}px`,
}}
>