修改满员判定条件
This commit is contained in:
@@ -231,10 +231,16 @@ function toast(message) {
|
|||||||
|
|
||||||
function isFull(counts) {
|
function isFull(counts) {
|
||||||
const { max_players, current_players, max_substitute_players, current_substitute_count, is_substitute_supported } = 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_substitute_players === current_substitute_count
|
||||||
}
|
}
|
||||||
return max_players === current_players
|
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// 底部操作栏
|
// 底部操作栏
|
||||||
@@ -749,8 +755,7 @@ function Participants(props) {
|
|||||||
<View
|
<View
|
||||||
className="participants-list-scroll-content"
|
className="participants-list-scroll-content"
|
||||||
style={{
|
style={{
|
||||||
width: `${
|
width: `${participants.length * 103 + (participants.length - 1) * 8
|
||||||
participants.length * 103 + (participants.length - 1) * 8
|
|
||||||
}px`,
|
}px`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user