修改满员判定条件
This commit is contained in:
@@ -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`,
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user