Fix danmaku auto-load default toggle
This commit is contained in:
@@ -8557,10 +8557,10 @@ const SiteConfigComponent = ({
|
||||
type='checkbox'
|
||||
className='sr-only peer'
|
||||
checked={siteSettings.DanmakuAutoLoadDefault !== false}
|
||||
onChange={() =>
|
||||
onChange={(e) =>
|
||||
setSiteSettings((prev) => ({
|
||||
...prev,
|
||||
DanmakuAutoLoadDefault: prev.DanmakuAutoLoadDefault === false,
|
||||
DanmakuAutoLoadDefault: e.target.checked,
|
||||
}))
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user