mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo.git
synced 2026-09-22 01:02:01 -07:00
Remove debug console.logs from profile page
By specifier.
This commit is contained in:
@@ -99,8 +99,6 @@ function Profile (props) {
|
|||||||
try {
|
try {
|
||||||
const memoDb = new MemoDb()
|
const memoDb = new MemoDb()
|
||||||
const myAddr = appData?.wallet?.walletInfo?.cashAddress || null
|
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
|
const memoFollow = myAddr
|
||||||
? new MemoFollow({ wallet: appData.wallet, profiles: appData.profiles })
|
? new MemoFollow({ wallet: appData.wallet, profiles: appData.profiles })
|
||||||
: null
|
: null
|
||||||
@@ -140,15 +138,6 @@ function Profile (props) {
|
|||||||
const showUnfollowButton = profilePage && profilePage.canFollow() && profilePage.isFollowing()
|
const showUnfollowButton = profilePage && profilePage.canFollow() && profilePage.isFollowing()
|
||||||
const showMuteButton = profilePage && profilePage.canMute() && !profilePage.isMuting()
|
const showMuteButton = profilePage && profilePage.canMute() && !profilePage.isMuting()
|
||||||
const showUnmuteButton = 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 (
|
return (
|
||||||
<Container fluid className='profile-page mt-4'>
|
<Container fluid className='profile-page mt-4'>
|
||||||
|
|||||||
Reference in New Issue
Block a user