refactor: don't use length for req id

This commit is contained in:
2023-08-01 08:15:41 +02:00
parent f273f1d8b4
commit 1d0c2e8980
3 changed files with 4 additions and 7 deletions

View File

@ -44,9 +44,7 @@ export function useBadges(pubkey: string, leaveOpen = true) {
const acceptedSub = useMemo(() => {
if (rawBadges.length === 0) return null;
const rb = new RequestBuilder(
`accepted-badges:${pubkey.slice(0, 12)}:${rawBadges.length}`,
);
const rb = new RequestBuilder(`accepted-badges:${pubkey.slice(0, 12)}`);
rb.withFilter()
.kinds([EventKind.ProfileBadges])
.tag("d", ["profile_badges"])