@@ -124,7 +124,7 @@ function OpenGame({game, onClick}) {
124
124
125
125
function ChallengeDialog ( { lobbyState, setLobbyState, acceptableGame, acceptDialogRef} ) {
126
126
let [ isFlip , setFlip ] = useState ( false )
127
- let [ handi , setHandi ] = useState ( 1 )
127
+ let [ handicap , setHandicap ] = useState ( 1 )
128
128
let auth = useAuthStore ( state => state . auth )
129
129
let zAccept = getZindex ( lobbyState , "accept" )
130
130
return (
@@ -140,7 +140,7 @@ function ChallengeDialog({lobbyState, setLobbyState, acceptableGame, acceptDialo
140
140
body : JSON . stringify ( {
141
141
game : acceptableGame ?. game ,
142
142
flip : isFlip ,
143
- handicap : handi === 1 ? 0 : handi ,
143
+ handicap : handicap === 1 ? 0 : handicap ,
144
144
} ) ,
145
145
} )
146
146
setLobbyState ( closeLobbyPopup ( lobbyState ) )
@@ -169,19 +169,19 @@ function ChallengeDialog({lobbyState, setLobbyState, acceptableGame, acceptDialo
169
169
< div className = "mt-2 text-black py-1" >
170
170
< div className = "inline-flex" >
171
171
< span > Handicap:</ span >
172
- < button type = "button" disabled = { handi === 1 } onClick = { ( ) => setHandi ( Math . max ( 1 , handi - 1 ) ) } >
172
+ < button type = "button" disabled = { handicap === 1 } onClick = { ( ) => setHandicap ( Math . max ( 1 , handicap - 1 ) ) } >
173
173
< IconContext . Provider value = { {
174
174
size : "1.25em" ,
175
175
className : twJoin (
176
176
"px-1" ,
177
- handi === 1 && "text-slate-400" ,
177
+ handicap === 1 && "text-slate-400" ,
178
178
)
179
179
} } >
180
180
< FaAngleLeft />
181
181
</ IconContext . Provider >
182
182
</ button >
183
- < span className = "font-bold" > { handi === 1 ? "0" : handi } </ span >
184
- < button type = "button" className = "" onClick = { ( ) => setHandi ( handi + 1 ) } >
183
+ < span className = "font-bold" > { handicap === 1 ? "0" : handicap } </ span >
184
+ < button type = "button" className = "" onClick = { ( ) => setHandicap ( handicap + 1 ) } >
185
185
< IconContext . Provider value = { { size : "1.25em" , className : "pl-1" } } >
186
186
< FaAngleRight />
187
187
</ IconContext . Provider >
0 commit comments