diff --git a/.github/workflows/release-governance.yml b/.github/workflows/release-governance.yml index 492ce9865..da93308b5 100644 --- a/.github/workflows/release-governance.yml +++ b/.github/workflows/release-governance.yml @@ -31,7 +31,7 @@ jobs: - run: yarn workspaces focus @snx-v3/governance working-directory: v3ui - - run: yarn workspace @snx-v3/governance build + - run: yarn workspace @snx-v3/governance build TESTNET=true working-directory: v3ui - run: rm -rf ./governance/* diff --git a/governance/ui/src/components/Header/Header.tsx b/governance/ui/src/components/Header/Header.tsx index 6e1978560..f868ccf35 100644 --- a/governance/ui/src/components/Header/Header.tsx +++ b/governance/ui/src/components/Header/Header.tsx @@ -57,9 +57,7 @@ export function Header() { - {(process.env.TESTNET === 'true' || process.env.DEV === 'true') && ( - Admin - )} + Admin {activeWallet && } diff --git a/governance/ui/src/utils/providers.ts b/governance/ui/src/utils/providers.ts index afa00b099..3a27ae1d2 100644 --- a/governance/ui/src/utils/providers.ts +++ b/governance/ui/src/utils/providers.ts @@ -6,6 +6,6 @@ export const motherShipProvider = (networkId?: number) => { ? process.env.CI_RPC_MOTHERSHIP : networkId === 13001 ? 'https://testnet.snaxchain.io/' - : 'https://mainnet.snaxchain.io/' + : 'https://testnet.snaxchain.io/' ); };