type issue
This commit is contained in:
1 parent
526fa24eab
commit
12b28ffb3f
1 file changed
+6
@@ -93,6 +93,12 @@ const Settings = () => {
|
|||||||
) {
|
) {
|
||||||
newValue = checked;
|
newValue = checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure showURL is a proper boolean
|
||||||
|
if (name === "showURL") {
|
||||||
|
newValue = value === true || value === "true";
|
||||||
|
}
|
||||||
|
|
||||||
// Build next state early
|
// Build next state early
|
||||||
const newSettingsData = {
|
const newSettingsData = {
|
||||||
...settingsData,
|
...settingsData,
|
||||||
|
|||||||
Reference in new issue
Block a user