From cc62af6bcd59917136c27ce02d2d659c43d42f5e Mon Sep 17 00:00:00 2001 From: "0xelessar.eth" Date: Mon, 25 Nov 2024 15:19:12 +0700 Subject: [PATCH] fix(web): set Rollup filter for multiple `from` addresses from query params (#644) * fix(web): reset Rollup dropdown based on query parameters for multiple addresses * chore: add changeset --- .changeset/eighty-clouds-end.md | 5 +++ .../src/components/Filters/RollupFilter.tsx | 33 ++++++++++--------- apps/web/src/components/Filters/index.tsx | 10 +++++- 3 files changed, 31 insertions(+), 17 deletions(-) create mode 100644 .changeset/eighty-clouds-end.md diff --git a/.changeset/eighty-clouds-end.md b/.changeset/eighty-clouds-end.md new file mode 100644 index 000000000..8b42ae6a1 --- /dev/null +++ b/.changeset/eighty-clouds-end.md @@ -0,0 +1,5 @@ +--- +"@blobscan/web": patch +--- + +Fixed an issue where the Rollup filter was not being set correctly from query parameters diff --git a/apps/web/src/components/Filters/RollupFilter.tsx b/apps/web/src/components/Filters/RollupFilter.tsx index 414f0ccd4..cfe06dfc2 100644 --- a/apps/web/src/components/Filters/RollupFilter.tsx +++ b/apps/web/src/components/Filters/RollupFilter.tsx @@ -20,27 +20,28 @@ type RollupFilterProps = { const chainId = getChainIdByName(env.NEXT_PUBLIC_NETWORK_NAME); const rollups = chainId ? getChainRollups(chainId) : []; -export const ROLLUP_OPTIONS: Option[] = [ +export const ROLLUP_OPTIONS = [ { value: "null", selectedLabel: None, label: "None", }, - ...rollups.map