From ba1142416a92fafc56ae560b3e791cb3669497b8 Mon Sep 17 00:00:00 2001 From: iamacook Date: Tue, 22 Feb 2022 09:43:43 +0100 Subject: [PATCH] fix: use global `replace` instead of `replaceAll` --- src/routes/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/routes.ts b/src/routes/routes.ts index 90bfce7e9b..b21c5353a6 100644 --- a/src/routes/routes.ts +++ b/src/routes/routes.ts @@ -67,7 +67,7 @@ export const SAFE_ROUTES = { export const getNetworkRootRoutes = (): Array<{ chainId: ChainId; route: string; shortName: string }> => getChains().map(({ chainId, chainName, shortName }) => ({ chainId, - route: `/${chainName.replaceAll(' ', '-').toLowerCase()}`, + route: `/${chainName.replace(/\s+/g, '-').toLowerCase()}`, shortName, }))