diff --git a/apps/web/src/utils/addQueryToPath.ts b/apps/web/src/utils/addQueryToPath.ts index 20f1f5446cf3d..fd2ac3e0fcd5e 100644 --- a/apps/web/src/utils/addQueryToPath.ts +++ b/apps/web/src/utils/addQueryToPath.ts @@ -5,9 +5,8 @@ export function addQueryToPath(path: string, queryParams: { [key: string]: strin Object.keys(queryParams).forEach((key) => { if (key === 'chain') { searchParams.delete('chainId') - } else { - searchParams.set(key, queryParams[key]) } + searchParams.set(key, queryParams[key]) }) return `${pathname}?${searchParams.toString()}`