mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-16 08:27:05 -05:00
"fix" type errors
This commit is contained in:
parent
9d7345af5e
commit
5b93dfbcc7
|
|
@ -185,7 +185,7 @@ const TeamManagementModal: React.FC<Props> = ({ team }) => {
|
|||
gridColumnGap={2}
|
||||
placeItems="center"
|
||||
>
|
||||
{team.roster?.map((user) => (
|
||||
{team.roster!.map((user) => (
|
||||
<Fragment key={user.id}>
|
||||
<UserAvatar user={user} />
|
||||
<Box>
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ interface Props {
|
|||
}
|
||||
|
||||
const getTeamXPInfo = (roster: NonNullable<GetTeamData>["roster"]) => {
|
||||
const placements = roster.reduce(
|
||||
const placements = roster!.reduce(
|
||||
(
|
||||
acc: {
|
||||
weapon: string;
|
||||
|
|
@ -212,7 +212,7 @@ const TeamPage: React.FC<Props> = (props) => {
|
|||
)}
|
||||
{user &&
|
||||
user.id !== team.captainId &&
|
||||
team.roster.some((teamMember) => user.id === teamMember.id) && (
|
||||
team.roster!.some((teamMember) => user.id === teamMember.id) && (
|
||||
<Center my={4}>
|
||||
<Button
|
||||
variant="outline"
|
||||
|
|
@ -234,8 +234,8 @@ const TeamPage: React.FC<Props> = (props) => {
|
|||
mt={4}
|
||||
mb={6}
|
||||
>
|
||||
{team.roster
|
||||
.sort(
|
||||
{team
|
||||
.roster!.sort(
|
||||
(a, b) =>
|
||||
Number(b.id === team.captainId) - Number(a.id === team.captainId)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user