chore(me): remove debug logs after fixing tab switching

This commit is contained in:
Gigi
2025-10-21 23:13:10 +02:00
parent 60e1e3c821
commit c3302da11d

View File

@@ -59,8 +59,6 @@ const Me: React.FC<MeProps> = ({
const { filter: urlFilter } = useParams<{ filter?: string }>()
const activeTab = propActiveTab || 'highlights'
console.log('[Me] Rendered with activeTab:', activeTab, 'propActiveTab:', propActiveTab)
// Only for own profile
const viewingPubkey = activeAccount?.pubkey
const [highlights, setHighlights] = useState<Highlight[]>([])
@@ -230,8 +228,6 @@ const Me: React.FC<MeProps> = ({
const loadReadingListTab = useCallback(async () => {
if (!viewingPubkey || !activeAccount) return
console.log('[Me] loadReadingListTab called')
setLoadedTabs(prev => {
const hasBeenLoaded = prev.has('reading-list')
if (!hasBeenLoaded) setLoading(true)
@@ -245,8 +241,6 @@ const Me: React.FC<MeProps> = ({
const loadReadsTab = useCallback(async () => {
if (!viewingPubkey || !activeAccount) return
console.log('[Me] loadReadsTab called')
let hasBeenLoaded = false
setLoadedTabs(prev => {
hasBeenLoaded = prev.has('reads')
@@ -275,8 +269,6 @@ const Me: React.FC<MeProps> = ({
const loadLinksTab = useCallback(async () => {
if (!viewingPubkey || !activeAccount) return
console.log('[Me] loadLinksTab called')
let hasBeenLoaded = false
setLoadedTabs(prev => {
hasBeenLoaded = prev.has('links')
@@ -320,8 +312,6 @@ const Me: React.FC<MeProps> = ({
// Load active tab data
const loadActiveTab = useCallback(() => {
console.log('[Me] loadActiveTab called with activeTab:', activeTab)
if (!viewingPubkey || !activeTab) {
setLoading(false)
return