From 33792f995f82b77b9e6c0f7ee1783e0203c4390f Mon Sep 17 00:00:00 2001 From: Lillith Date: Fri, 28 Jun 2024 19:26:21 -0400 Subject: [PATCH] fix: we dont need onAgree --- src/plugins/passwordProtect/index.tsx | 1 - 1 file changed, 1 deletion(-) 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);