From a52b7234141926239d0cfafe7ac0b6ce74b44f1a Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 27 May 2025 18:17:41 +0200 Subject: [PATCH] code styling --- src/e2ee/sharedKeyManagement.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e2ee/sharedKeyManagement.ts b/src/e2ee/sharedKeyManagement.ts index a3fa1ecc..3aa50b98 100644 --- a/src/e2ee/sharedKeyManagement.ts +++ b/src/e2ee/sharedKeyManagement.ts @@ -21,7 +21,7 @@ const getRoomSharedKeyLocalStorageKey = (roomId: string): string => const useInternalRoomSharedKey = (roomId: string): string | null => { const key = getRoomSharedKeyLocalStorageKey(roomId); - const roomSharedKey = useLocalStorage(key)[0]; + const [roomSharedKey] = useLocalStorage(key); return roomSharedKey; };