#2 Silence expected 'no follow list' warn in useBatchTrustScores
Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
parent
86a5a4b859
commit
adc90caae9
1 changed files with 1 additions and 2 deletions
|
|
@ -30,8 +30,7 @@ export function useBatchTrustScores(pubkeys: string[]) {
|
|||
|
||||
const followList = followListEvents[0];
|
||||
if (!followList) {
|
||||
console.warn('[useBatchTrustScores] No follow list found');
|
||||
// Default all to 0
|
||||
// No follow list (e.g. logged-out or new account) — default all to 0.
|
||||
pubkeys.forEach((pk) => scores.set(pk, 0));
|
||||
return scores;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue