Skip to content

Commit

Permalink
fix: profile content not loaded in my-profile
Browse files Browse the repository at this point in the history
  • Loading branch information
ameerul-deriv committed Jun 10, 2024
1 parent 2592d96 commit 7af2983
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/my-profile/screens/MyProfile/MyProfile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/pages/my-profile/screens/MyProfile/MyProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -62,7 +63,7 @@ const MyProfile = () => {

return (
<div className='my-profile'>
<ProfileContent />
<ProfileContent data={advertiserStats} />
<Tabs
activeTab={(currentTab !== 'default' && currentTab) || 'Stats'}
className='my-profile__tabs'
Expand Down

0 comments on commit 7af2983

Please sign in to comment.