diff --git a/src/components/benchmark-body.tsx b/src/components/benchmark-body.tsx index b50d7742..87a624f2 100644 --- a/src/components/benchmark-body.tsx +++ b/src/components/benchmark-body.tsx @@ -667,7 +667,7 @@ export function BenchmarkBody({ label="Venue" options={filteredVenueOptions} selected={venue ?? fallbackVenue} - onSelect={setVenue} + onSelect={(v) => { setVenue(v); setChain(null); }} metaByValue={Object.fromEntries( filteredVenueOptions .map((o) => [ @@ -703,7 +703,13 @@ export function BenchmarkBody({ label="Chain" options={filteredChainOptions} selected={chain ?? fallbackChain} - onSelect={setChain} + onSelect={(v) => { + setChain(v); + if (v !== "all" && effectiveVenue && effectiveVenue !== "all" && venuesForChain) { + const validVenues = venuesForChain[v]; + if (validVenues && !validVenues.includes(effectiveVenue)) setVenue(null); + } + }} metaByValue={Object.fromEntries( filteredChainOptions .map((o) => [