From d69976454688e382f70e168dfa20d23f1d78149f Mon Sep 17 00:00:00 2001 From: Hunter Thornsberry Date: Wed, 2 Oct 2024 22:07:45 -0400 Subject: [PATCH] biome --- src/components/Form/FormInput.tsx | 8 +++++--- src/components/Form/FormPasswordGenerator.tsx | 2 +- src/pages/Messages.tsx | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Form/FormInput.tsx b/src/components/Form/FormInput.tsx index ba9fb885..c4e5001d 100644 --- a/src/components/Form/FormInput.tsx +++ b/src/components/Form/FormInput.tsx @@ -31,7 +31,7 @@ export function GenericInput({ }: GenericFormElementProps>) { const [passwordShown, setPasswordShown] = useState(false); const togglePasswordVisiblity = () => { - setPasswordShown(passwordShown ? false : true); + setPasswordShown(!passwordShown); }; return ( @@ -40,9 +40,11 @@ export function GenericInput({ control={control} render={({ field: { value, onChange, ...rest } }) => ( ({ }: GenericFormElementProps>) { const [passwordShown, setPasswordShown] = useState(false); const togglePasswordVisiblity = () => { - setPasswordShown(passwordShown ? false : true); + setPasswordShown(!passwordShown); }; return ( diff --git a/src/pages/Messages.tsx b/src/pages/Messages.tsx index bc624a76..4e7fbae9 100644 --- a/src/pages/Messages.tsx +++ b/src/pages/Messages.tsx @@ -76,7 +76,7 @@ export const MessagesPage = (): JSX.Element => { chatType === "broadcast" && currentChannel ? getChannelName(currentChannel) : chatType === "direct" && nodes.get(activeChat) - ? (nodes.get(activeChat)?.user?.longName ?? nodeHex) + ? nodes.get(activeChat)?.user?.longName ?? nodeHex : "Loading..." }`} actions={