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={