diff --git a/src/plugins/passwordProtect/index.tsx b/src/plugins/passwordProtect/index.tsx index 42e3d1c19..57e8469d8 100644 --- a/src/plugins/passwordProtect/index.tsx +++ b/src/plugins/passwordProtect/index.tsx @@ -59,7 +59,6 @@ export default definePlugin({ props.description = "This channel is password protected. Please enter the password to view the content."; props.agreement = "Enter password"; props.disagreement = "Cancel"; - const oldOnAgree = props.onAgree; props.onAgree = () => { openAccessModal(channel.id, async success => { console.log(success);