debug: add log to verify post-processing adds loading class

- Log when loading class is added to profile links during post-processing
- Will help verify the shimmer is being applied correctly
This commit is contained in:
Gigi
2025-11-02 22:59:28 +01:00
parent 1eca19154d
commit 0bf33f1a7d
2 changed files with 9 additions and 10 deletions

View File

@@ -241,13 +241,8 @@ export function useProfileLabels(
}
})
// Set fallback labels for profiles that weren't found
profileData.forEach(({ pubkey }) => {
if (!labels.has(pubkey)) {
const fallback = getNpubFallbackDisplay(pubkey)
labels.set(pubkey, fallback)
}
})
// Don't set fallback labels in the Map - we'll use fallback directly when rendering
// This allows us to distinguish between "no label yet" (use fallback) vs "resolved label" (use Map value)
setProfileLabels(new Map(labels))
setProfileLoading(new Map(loading))