From 4764edff782f3daece4fef106cf31c3117398600 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Thu, 3 Sep 2026 06:40:11 -0700 Subject: [PATCH] Adding console.log for debugging --- .../src/components/app-body/profile/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/psf-memo-client/src/components/app-body/profile/index.js b/psf-memo-client/src/components/app-body/profile/index.js index 1899759..f019761 100644 --- a/psf-memo-client/src/components/app-body/profile/index.js +++ b/psf-memo-client/src/components/app-body/profile/index.js @@ -99,6 +99,8 @@ function Profile (props) { try { const memoDb = new MemoDb() const myAddr = appData?.wallet?.walletInfo?.cashAddress || null + console.log('[profile] loadProfile myAddr:', myAddr) + console.log('[profile] wallet present:', Boolean(appData?.wallet), 'walletInfo:', appData?.wallet?.walletInfo) const memoFollow = myAddr ? new MemoFollow({ wallet: appData.wallet, profiles: appData.profiles }) : null @@ -138,6 +140,15 @@ function Profile (props) { const showUnfollowButton = profilePage && profilePage.canFollow() && profilePage.isFollowing() const showMuteButton = profilePage && profilePage.canMute() && !profilePage.isMuting() const showUnmuteButton = profilePage && profilePage.canMute() && profilePage.isMuting() + console.log('[profile] render conditions:', { + profilePageLoaded: Boolean(profilePage), + myAddr: profilePage?.myAddr ?? null, + isOwnProfile: profilePage?.isOwnProfile() ?? null, + canFollow: profilePage?.canFollow() ?? null, + isFollowing: profilePage?.isFollowing() ?? null, + showFollowButton, + showUnfollowButton + }) return (