From 672cf8a121a13e99d01b9edf635329440a658966 Mon Sep 17 00:00:00 2001 From: philon- Date: Tue, 13 May 2025 00:22:12 +0200 Subject: [PATCH] Renaming state ref --- src/components/PageComponents/Config/Security/Security.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/PageComponents/Config/Security/Security.tsx b/src/components/PageComponents/Config/Security/Security.tsx index f8488525..020295c4 100644 --- a/src/components/PageComponents/Config/Security/Security.tsx +++ b/src/components/PageComponents/Config/Security/Security.tsx @@ -41,9 +41,9 @@ export const Security = () => { privateKeyDialogOpen: false, }); - const stateRef = useRef(state); + const adminKeysRef = useRef(state); useEffect(() => { - stateRef.current = state; + adminKeysRef.current = state; }, [state]); const validateKey = ( @@ -97,7 +97,7 @@ export const Security = () => { return; } - const current = stateRef.current; + const current = adminKeysRef.current; setWorkingConfig( create(Protobuf.Config.ConfigSchema, {