From e8e2ac63a9f8eb17b5cacc506d3061a54f0efa30 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:02:42 +0000 Subject: [PATCH] fix: reserved colony names --- src/routes/Routes.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/routes/Routes.tsx b/src/routes/Routes.tsx index c1e6b8b5090..b14a75befda 100644 --- a/src/routes/Routes.tsx +++ b/src/routes/Routes.tsx @@ -121,9 +121,12 @@ const Routes = () => { /> {/* If a reserved route has not been used by this point, redirect to NotFoundRoute */} - {[...RESERVED_ROUTES].map((route) => ( - } /> - ))} + {[...RESERVED_ROUTES] + // Allow in use colony names + .filter((route) => !['/meta', '/beta'].includes(route)) + .map((route) => ( + } /> + ))} {/* Colony routes */} }>