Fix Aprilfoolsmode toggle

This commit is contained in:
glax 2024-10-27 02:32:05 +01:00
parent a486b5bdfc
commit 251ec0a978

View File

@ -112,8 +112,8 @@ export default function Settings({backendConnected, apiUri, settings, changeSett
}
const SetAprilFoolsMode : ChangeEventHandler<HTMLInputElement> = (e) => {
//console.info(`Updating AprilFoolsMode ${e.currentTarget.value}`);
postData(`${apiUri}/v2/Settings/AprilFoolsMode`, {value: e.currentTarget.value == "on"})
//console.info(`Updating AprilFoolsMode ${e.target.checked}`);
postData(`${apiUri}/v2/Settings/AprilFoolsMode`, {value: e.target.checked})
.then((json) => {
//console.info(`Successfully updated AprilFoolsMode ${e.currentTarget.value}`);
UpdateBackendSettings();