From 06669fe114b4e0da650a405cd170ae1212c3f14d Mon Sep 17 00:00:00 2001 From: fmtabbara Date: Fri, 4 Mar 2022 13:33:00 +0000 Subject: [PATCH] don't show profile if in settings if no mixnode details --- nym-wallet/src/pages/settings/profile.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nym-wallet/src/pages/settings/profile.tsx b/nym-wallet/src/pages/settings/profile.tsx index 7183ad675a..c3a6a97117 100644 --- a/nym-wallet/src/pages/settings/profile.tsx +++ b/nym-wallet/src/pages/settings/profile.tsx @@ -5,6 +5,9 @@ import { ClientContext } from '../../context/main' export const Profile = () => { const { mixnodeDetails } = useContext(ClientContext) + + if (!mixnodeDetails) return null + return ( <>