Skip to content

Commit

Permalink
Merge pull request #422 from reservoirprotocol/security-config-fixes
Browse files Browse the repository at this point in the history
feat: security config fixes
  • Loading branch information
r3lays authored Dec 1, 2023
2 parents 39e4c6f + fd668cc commit 7994469
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/collections/CollectionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const CollectionDetails: FC<Props> = ({
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' : ''
}`
Expand Down
3 changes: 1 addition & 2 deletions components/token/TokenInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ export const TokenInfo: FC<Props> = ({ 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' : ''}`

Expand Down
4 changes: 2 additions & 2 deletions pages/[chain]/collection/[contract].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ const CollectionPage: NextPage<Props> = ({ id, ssr }) => {
)

const hasSecurityConfig =
collection?.securityConfig &&
Object.values(collection.securityConfig).some(Boolean)
typeof collection?.securityConfig?.transferSecurityLevel === 'number'

const contractKind = `${collection?.contractKind?.toUpperCase()}${
hasSecurityConfig ? 'C' : ''
}`
Expand Down

1 comment on commit 7994469

@vercel
Copy link

@vercel vercel bot commented on 7994469 Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.