#2 Silence expected 'no follow list' warn in useBatchTrustScores

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
shakespeare.diy 2026-08-27 10:19:23 +07:00
parent 86a5a4b859
commit adc90caae9

View file

@ -30,8 +30,7 @@ export function useBatchTrustScores(pubkeys: string[]) {
const followList = followListEvents[0]; const followList = followListEvents[0];
if (!followList) { if (!followList) {
console.warn('[useBatchTrustScores] No follow list found'); // No follow list (e.g. logged-out or new account) — default all to 0.
// Default all to 0
pubkeys.forEach((pk) => scores.set(pk, 0)); pubkeys.forEach((pk) => scores.set(pk, 0));
return scores; return scores;
} }