From 7af2983c29d104e2f3a59de72d614455d36de961 Mon Sep 17 00:00:00 2001 From: ameerul-deriv Date: Mon, 10 Jun 2024 11:47:55 +0800 Subject: [PATCH] fix: profile content not loaded in my-profile --- src/pages/my-profile/screens/MyProfile/MyProfile.scss | 2 +- src/pages/my-profile/screens/MyProfile/MyProfile.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/my-profile/screens/MyProfile/MyProfile.scss b/src/pages/my-profile/screens/MyProfile/MyProfile.scss index ab7d7e70..f4b3aaae 100644 --- a/src/pages/my-profile/screens/MyProfile/MyProfile.scss +++ b/src/pages/my-profile/screens/MyProfile/MyProfile.scss @@ -3,7 +3,7 @@ flex-direction: column; padding-top: 2.4rem; overflow-y: auto; - height: calc(100vh - 14rem); + height: calc(100vh - 19rem); @include mobile { padding: 0; diff --git a/src/pages/my-profile/screens/MyProfile/MyProfile.tsx b/src/pages/my-profile/screens/MyProfile/MyProfile.tsx index 1a1e6687..ab2f39d3 100644 --- a/src/pages/my-profile/screens/MyProfile/MyProfile.tsx +++ b/src/pages/my-profile/screens/MyProfile/MyProfile.tsx @@ -41,6 +41,7 @@ const MyProfile = () => { useEffect(() => { const isPoaPoiVerified = (!isP2PPoaRequired || isPoaVerified) && isPoiVerified; if (isPoaPoiVerified && !isAdvertiser) showModal('NicknameModal'); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [isAdvertiser, isP2PPoaRequired, isPoaVerified, isPoiVerified]); if (isLoading && !advertiserStats) { @@ -62,7 +63,7 @@ const MyProfile = () => { return (
- +