mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-10 04:22:05 +10:00
fix socials check
This commit is contained in:
@ -61,6 +61,6 @@ export class MutableFilter implements Filter {
|
||||
private async hasSocials(metadata: MetadataAccountData) {
|
||||
const response = await fetch(metadata.uri);
|
||||
const data = await response.json();
|
||||
return Object.values(data?.extensions ?? {}).some((value: any) => value !== null && value.length > 0);
|
||||
return Object.values(data?.extensions ?? {}).filter((value: any) => value).length > 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user