Skip to content

Commit ad73e69

Browse files
theo-learnerclaude
andcommitted
fix: prioritize NEXT_PUBLIC_NETWORK_NAME over chain plugin displayName
The env var was always shadowed by chain.displayName ('Thanos L2 Rollup') due to || short-circuit evaluation order. Flip to env var first. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4753ad6 commit ad73e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ export default function Dashboard() {
11501150

11511151
const isReadOnlyMode = process.env.NEXT_PUBLIC_SENTINAI_READ_ONLY_MODE === 'true';
11521152
const isGoalManagerEnabled = goalManager?.config.enabled === true;
1153-
const networkName = current?.chain?.displayName || process.env.NEXT_PUBLIC_NETWORK_NAME;
1153+
const networkName = process.env.NEXT_PUBLIC_NETWORK_NAME || current?.chain?.displayName;
11541154
const eoaRoleEntries = Object.entries(current?.eoaBalances?.roles || {}).filter(([, value]) => value !== null);
11551155
const showL1Failover = Boolean(l1Failover && current?.chain?.capabilities?.l1Failover !== false);
11561156
const showFaultProof = Boolean(current?.chain?.capabilities?.disputeGameMonitoring && current?.disputeGames?.enabled);

0 commit comments

Comments
 (0)