Skip to content

Commit

Permalink
Fix verification check (#2020)
Browse files Browse the repository at this point in the history
* Fix verification check

* Fix check again
nachoiacovino authored Nov 28, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 619e95e commit 7c71836
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -30,7 +30,6 @@ import {
import {
ChainIdToSupportedCurrencies,
CreateUpdateCheckoutInput,
hasPaymentsDetectedExtensions,
usePaymentsCreateUpdateCheckout,
} from "@3rdweb-sdk/react/hooks/usePayments";
import { useMemo, useState } from "react";
@@ -329,7 +328,8 @@ export const CreateUpdateCheckoutButton: React.FC<
> = ({ contractId, contractAddress, checkout, checkoutId }) => {
const { contract } = useContract(contractAddress);

const hasDetectedExtensions = hasPaymentsDetectedExtensions(contract);
const hasDetectedExtensions = checkout?.contract_type !== "CUSTOM_CONTRACT";

const isErc1155 = detectFeatures(contract, ["ERC1155"]);

const keysQuery = useApiKeys();
5 changes: 1 addition & 4 deletions contract-ui/tabs/payments/components/no-payments-enabled.tsx
Original file line number Diff line number Diff line change
@@ -22,10 +22,7 @@ export const NoPaymentsEnabled: React.FC<NoPaymentsEnabledProps> = ({
const isMainnet = validPaymentsChainIdsMainnets.includes(chainId ?? 0);
const isSupportedChain = validPaymentsChainIds.includes(chainId ?? 0);

const needsVerification =
isMainnet &&
!sellerData?.date_personal_documents_verified &&
!sellerData?.date_business_documents_verified;
const needsVerification = isMainnet && !sellerData?.has_production_access;

return (
<Card p={8} bgColor="backgroundCardHighlight" my={6}>

0 comments on commit 7c71836

Please sign in to comment.