From bd1ce2e30476ec3b3eb29a7c9fb2cb25ea2047ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20D=C3=ADaz=20Gonz=C3=A1lez?= Date: Fri, 14 Mar 2025 11:18:54 +0000 Subject: [PATCH] fix(web): correct typos found with cspell Fixes typos that were affecting the optimistic update for root auth methods. While likely unnoticed, it's still important to address them. --- web/src/queries/users.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/queries/users.ts b/web/src/queries/users.ts index 7d27488a11..c799bdc71d 100644 --- a/web/src/queries/users.ts +++ b/web/src/queries/users.ts @@ -150,7 +150,7 @@ const useRootUserChanges = () => { return client.onEvent((event) => { if (event.type === "RootChanged") { - const { password, sshPublickKey } = event; + const { password, sshPublicKey } = event; queryClient.setQueryData(["users", "root"], (oldRoot: RootUser) => { const newRoot = { ...oldRoot }; if (password !== undefined) { @@ -158,8 +158,8 @@ const useRootUserChanges = () => { newRoot.hashedPassword = false; } - if (sshPublickKey) { - newRoot.sshPublicKey = sshPublickKey; + if (sshPublicKey) { + newRoot.sshPublicKey = sshPublicKey; } return newRoot;