File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ export const fetchTeams = async ({
3838 }
3939} ;
4040
41- export const setTeamRound = async ( id : string , round : string ) => {
41+ export const setTeamRound = async ( id : string , round : number ) => {
4242 try {
43- const response = await axios . put < TeamsResponse > ( "/admin/team/rounds" , { id, role : round } ) ;
43+ const response = await axios . put < TeamsResponse > ( "/admin/team/rounds" , { id, round_qualified : round } ) ;
4444 return response . data
4545 }
4646 catch ( err ) {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ function ChangeRound({ row }: SelectCellProps) {
2525
2626 const mutation = useMutation ( {
2727 mutationFn : ( data : { id : string ; round : string } ) => {
28- return setTeamRound ( data . id , data . round ) ;
28+ return setTeamRound ( data . id , Number ( data . round ) ) ;
2929 } ,
3030 onSuccess : async ( ) => {
3131 await queryClient . invalidateQueries ( {
You can’t perform that action at this time.
0 commit comments