From 04f6adac8a31296cb7b4293f94406686ed20144f Mon Sep 17 00:00:00 2001 From: Apostolof Date: Fri, 11 Dec 2020 00:02:31 +0200 Subject: [PATCH] Fix profile issues --- packages/concordia-app/src/components/UsernameSelector.jsx | 2 +- packages/concordia-app/src/views/Profile/GeneralTab/index.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/concordia-app/src/components/UsernameSelector.jsx b/packages/concordia-app/src/components/UsernameSelector.jsx index 530cd7a..8323757 100644 --- a/packages/concordia-app/src/components/UsernameSelector.jsx +++ b/packages/concordia-app/src/components/UsernameSelector.jsx @@ -38,7 +38,7 @@ const UsernameSelector = (props) => { }); } else { onErrorChangeCallback({ - usernameChecked: checkedUsername !== undefined, + usernameChecked: true, error: false, errorMessage: null, }); diff --git a/packages/concordia-app/src/views/Profile/GeneralTab/index.jsx b/packages/concordia-app/src/views/Profile/GeneralTab/index.jsx index 9e1b974..2515bea 100644 --- a/packages/concordia-app/src/views/Profile/GeneralTab/index.jsx +++ b/packages/concordia-app/src/views/Profile/GeneralTab/index.jsx @@ -66,7 +66,7 @@ const GeneralTab = (props) => { } }, [dispatch, profileAddress, users]); - const authorAvatar = useMemo(() => (profileMetadataFetched && userAvatarUrl !== null + const authorAvatar = useMemo(() => (profileMetadataFetched && userAvatarUrl ? (