missing brace
This commit is contained in:
1 parent
a70959e4a6
commit
1494df9eb3
1 file changed
+4
-4
@@ -172,10 +172,10 @@ const Settings = () => {
|
|||||||
// Update Redux immediately for UI feedback
|
// Update Redux immediately for UI feedback
|
||||||
if (name === "showURL") {
|
if (name === "showURL") {
|
||||||
dispatch(setShowURL(newValue));
|
dispatch(setShowURL(newValue));
|
||||||
const { error } = settingsValidation.validate(settingsData.settings, {
|
}
|
||||||
abortEarly: false,
|
};
|
||||||
});
|
|
||||||
if (!error || error.details.length === 0) {
|
const handleSave = () => {
|
||||||
setErrors({});
|
setErrors({});
|
||||||
} else {
|
} else {
|
||||||
const newErrors = {};
|
const newErrors = {};
|
||||||
|
|||||||
Reference in new issue
Block a user