mirror of
https://github.com/dergigi/boris.git
synced 2026-02-23 07:54:59 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user