Skip to content

Commit f5b422f

Browse files
committed
avoid error in console
1 parent 618d2b7 commit f5b422f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sidebar/SettingsBox.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function SettingsBox({ profile }: { profile: RoutingProfile }) {
3434
id={option.profile}
3535
name={groupName}
3636
value={option.profile}
37-
onClick={() => setProfile(option.profile)}
37+
onChange={() => setProfile(option.profile)}
3838
/>
3939
<label htmlFor={option.profile}>{tr(groupName + '_settings_' + option.profile)}</label>
4040
</div>
@@ -104,8 +104,8 @@ function SettingsToggle({ title, enabled, onClick }: { title: string; enabled: b
104104

105105
function SettingsCheckbox({ title, enabled, onClick }: { title: string; enabled: boolean; onClick: () => void }) {
106106
return (
107-
<div className={styles.settingsCheckbox} onClick={onClick}>
108-
<input type="checkbox" checked={enabled} onChange={ignore => {}}></input>
107+
<div className={styles.settingsCheckbox}>
108+
<input type="checkbox" checked={enabled} onChange={onClick}></input>
109109
<label style={{ color: enabled ? '#5b616a' : 'gray' }}>{title}</label>
110110
</div>
111111
)

0 commit comments

Comments
 (0)