Fix unexpected extra and operator (#129)
This commit is contained in:
parent
178e72abdd
commit
2334a06973
|
@ -4,10 +4,11 @@ import { PublicKey } from '@solana/web3.js';
|
|||
export const useCreatorArts = (id?: PublicKey | string) => {
|
||||
const { metadata } = useMeta();
|
||||
const filtered = metadata.filter(
|
||||
m =>
|
||||
m.info.data.creators !== null
|
||||
&& m.info.data.creators?.findIndex(c => c.address.toBase58() === id) !== undefined &&
|
||||
&& m.info.data.creators.findIndex(c => c.address.toBase58() === id) >= 0
|
||||
m =>
|
||||
m.info.data.creators !== null &&
|
||||
m.info.data.creators?.findIndex(c => c.address.toBase58() === id) !==
|
||||
undefined &&
|
||||
m.info.data.creators.findIndex(c => c.address.toBase58() === id) >= 0,
|
||||
);
|
||||
|
||||
return filtered;
|
||||
|
|
Loading…
Reference in New Issue