Skip to content

Commit e89ddb2

Browse files
[SDK] fix: Update ecosystem name and admin wallet handling (#6071)
1 parent 86f205e commit e89ddb2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

apps/playground-web/src/components/in-app-wallet/ecosystem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const getEcosystem = () => {
1111
return "ecosystem.catlovers";
1212
}
1313
// prod ecosystem
14-
return "ecosystem.new-age";
14+
return "ecosystem.thirdweb-engs";
1515
};
1616

1717
export function EcosystemConnectEmbed(

packages/thirdweb/src/react/core/hooks/wallets/useAdminWallet.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export function useAdminWallet() {
1111
const activeWallet = useActiveWallet();
1212
const connectedWallets = useConnectedWallets();
1313
const adminAccount = activeWallet?.getAdminAccount?.();
14-
1514
if (!adminAccount) {
1615
// If the active wallet doesn't have an admin account, return the active wallet
1716
return activeWallet;

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/ManageWalletScreen.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export function ManageWalletScreen(props: {
2828
client: ThirdwebClient;
2929
manageWallet?: ConnectButton_detailsModalOptions["manageWallet"];
3030
}) {
31-
const activeWallet = useAdminWallet();
31+
const adminWallet = useAdminWallet();
32+
const activeWallet = useActiveWallet();
3233

3334
return (
3435
<Container
@@ -92,9 +93,9 @@ export function ManageWalletScreen(props: {
9293
</MenuButton>
9394

9495
{/* Private Key Export (if enabled) */}
95-
{activeWallet &&
96-
isInAppWallet(activeWallet) &&
97-
!activeWallet.getConfig()?.hidePrivateKeyExport && (
96+
{adminWallet &&
97+
isInAppWallet(adminWallet) &&
98+
!adminWallet.getConfig()?.hidePrivateKeyExport && (
9899
<MenuButton
99100
onClick={() => {
100101
props.setScreen("private-key");

0 commit comments

Comments
 (0)