diff --git a/app/javascript/components/rooms/room/room_settings/RoomSettingsRow.jsx b/app/javascript/components/rooms/room/room_settings/RoomSettingsRow.jsx index cd22c775c6..afc9c653e6 100644 --- a/app/javascript/components/rooms/room/room_settings/RoomSettingsRow.jsx +++ b/app/javascript/components/rooms/room/room_settings/RoomSettingsRow.jsx @@ -22,13 +22,15 @@ export default function RoomSettingsRow({ }) { const updateAPI = useUpdateAPI(); const checkedValue = useMemo(() => { - if (value === 'true' || value === 'ASK_MODERATOR') { + if (disabled) { + return false; + } if (value === 'true' || value === 'ASK_MODERATOR') { return true; } if (value === 'false' || value === 'ALWAYS_ACCEPT') { return false; } return value; - }, [value]); + }, [value, disabled]); if (config === 'false') { return null;