File tree 1 file changed +8
-8
lines changed
frontend/components/Course/InstructorQueuePage
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -172,11 +172,6 @@ const QueueFormFields = ({
172
172
}
173
173
setInput ( { ...input } ) ;
174
174
} ;
175
-
176
- const handlePinInputChange = ( e , { checked } ) => {
177
- input . pinEnabled = checked ;
178
- setInput ( { ...input } ) ;
179
- } ;
180
175
/* PROPS UPDATE */
181
176
182
177
return (
@@ -246,7 +241,12 @@ const QueueFormFields = ({
246
241
id = "pin-toggle"
247
242
toggle
248
243
disabled = { loading }
249
- onChange = { handlePinInputChange }
244
+ onClick = { ( ) =>
245
+ setInput ( {
246
+ ...input ,
247
+ pinEnabled : ! input . pinEnabled ,
248
+ } )
249
+ }
250
250
/>
251
251
</ Form . Field >
252
252
@@ -261,9 +261,9 @@ const QueueFormFields = ({
261
261
name = "rateLimitEnabled"
262
262
id = "rate-limit-toggle"
263
263
toggle
264
- defaultChecked = { input . rateLimitEnabled }
264
+ checked = { input . rateLimitEnabled }
265
265
label = "Enable queue rate-limiting"
266
- onChange = { ( ) =>
266
+ onClick = { ( ) =>
267
267
setInput ( {
268
268
...input ,
269
269
rateLimitEnabled : ! input . rateLimitEnabled ,
You can’t perform that action at this time.
0 commit comments