From 945c355122b8ab2b37e8111f939a023afc04e616 Mon Sep 17 00:00:00 2001 From: Eric Schneider Date: Tue, 1 Nov 2022 09:15:45 -0700 Subject: [PATCH] fix: do not render account blocked modal unless account restricted --- .../account/accountBlockedModal/accountBlockedModal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/website/components/account/accountBlockedModal/accountBlockedModal.js b/packages/website/components/account/accountBlockedModal/accountBlockedModal.js index 3783fb7222..07afc9e9ed 100644 --- a/packages/website/components/account/accountBlockedModal/accountBlockedModal.js +++ b/packages/website/components/account/accountBlockedModal/accountBlockedModal.js @@ -16,7 +16,7 @@ const AccountBlockedModal = ({ hasAccountRestriction }) => { } }, [hasAccountRestriction, modalState]); - return ( + return modalState[0] ? (
{
- ); + ) : null; }; export default AccountBlockedModal;