Skip to content

Commit

Permalink
feat: default choice first team in game join modal
Browse files Browse the repository at this point in the history
  • Loading branch information
mnixry committed Aug 23, 2023
1 parent 76687c1 commit 8b38021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GZCTF/ClientApp/src/components/GameJoinModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const GameJoinModal: FC<GameJoinModalProps> = (props) => {

const [inviteCode, setInviteCode] = useState('')
const [organization, setOrganization] = useState(currentOrganization ?? '')
const [team, setTeam] = useState('')
const [team, setTeam] = useState(teams?.[0]?.id?.toString() ?? '')
const [disabled, setDisabled] = useState(false)

return (
Expand Down

0 comments on commit 8b38021

Please sign in to comment.