diff --git a/components/collections/CollectionDetails.tsx b/components/collections/CollectionDetails.tsx index 159417760..e7cdfe1d9 100644 --- a/components/collections/CollectionDetails.tsx +++ b/components/collections/CollectionDetails.tsx @@ -47,8 +47,8 @@ export const CollectionDetails: FC = ({ const descriptionRef = useRef(null as any) const hasSecurityConfig = - collection?.securityConfig && - Object.values(collection.securityConfig).some(Boolean) + typeof collection?.securityConfig?.transferSecurityLevel === 'number' + const contractKind = `${collection?.contractKind?.toUpperCase()}${ hasSecurityConfig ? 'C' : '' }` diff --git a/components/token/TokenInfo.tsx b/components/token/TokenInfo.tsx index 6b63afeee..5ee57a643 100644 --- a/components/token/TokenInfo.tsx +++ b/components/token/TokenInfo.tsx @@ -40,8 +40,7 @@ export const TokenInfo: FC = ({ token, collection }) => { let chainName = collectionChain?.name const hasSecurityConfig = - collection?.securityConfig && - Object.values(collection.securityConfig).some(Boolean) + typeof collection?.securityConfig?.transferSecurityLevel === 'number' const tokenStandard = `${token?.token?.kind}${hasSecurityConfig ? 'C' : ''}` diff --git a/pages/[chain]/collection/[contract].tsx b/pages/[chain]/collection/[contract].tsx index b311a6ed3..a2f06d111 100644 --- a/pages/[chain]/collection/[contract].tsx +++ b/pages/[chain]/collection/[contract].tsx @@ -331,8 +331,8 @@ const CollectionPage: NextPage = ({ id, ssr }) => { ) const hasSecurityConfig = - collection?.securityConfig && - Object.values(collection.securityConfig).some(Boolean) + typeof collection?.securityConfig?.transferSecurityLevel === 'number' + const contractKind = `${collection?.contractKind?.toUpperCase()}${ hasSecurityConfig ? 'C' : '' }`