diff --git a/.changeset/whole-bottles-wait.md b/.changeset/whole-bottles-wait.md new file mode 100644 index 00000000000..b1756df925b --- /dev/null +++ b/.changeset/whole-bottles-wait.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +TransactionWidget: Hides the "UnknownContract" label diff --git a/packages/thirdweb/src/react/web/ui/Bridge/TransactionPayment.tsx b/packages/thirdweb/src/react/web/ui/Bridge/TransactionPayment.tsx index 8cae9813e29..f2f3036f11a 100644 --- a/packages/thirdweb/src/react/web/ui/Bridge/TransactionPayment.tsx +++ b/packages/thirdweb/src/react/web/ui/Bridge/TransactionPayment.tsx @@ -212,22 +212,28 @@ export function TransactionPayment({ {/* Contract Info */} - - - Contract - - - {contractName} - - - - + {contractName !== "UnknownContract" && + contractName !== undefined && + contractName !== "Unknown Contract" && ( + <> + + + Contract + + + {contractName} + + + + + + )} {/* Address */}