···388388 // Clear error when user starts typing
389389 const handleDIDChange = (text: string) => {
390390 setModeratorDID(text);
391391- if (error) {
392392- setError(null);
393393- }
391391+ if (error) setError(null);
394392 };
395393396394 const handleAdd = async () => {
···430428 <ResponsiveDialog
431429 open={visible}
432430 onOpenChange={(open) => {
433433- if (!open) {
434434- onClose();
435435- }
431431+ if (!open) onClose();
436432 }}
437433 title="Add Moderator"
438434 description="Enter the DID or handle of the user you want to add as a moderator and select their permissions."