From df1732042a64eee1accc5ee5c652e3749dbe431b Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 17 Dec 2020 14:43:05 +0100 Subject: [PATCH] Adjust redirect logging (apis only showsn when filled) (#4229) --- packages/apps/src/Content/NotFound.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/apps/src/Content/NotFound.tsx b/packages/apps/src/Content/NotFound.tsx index d71c19fa77..e8982acc6f 100644 --- a/packages/apps/src/Content/NotFound.tsx +++ b/packages/apps/src/Content/NotFound.tsx @@ -11,7 +11,7 @@ interface Props extends RouteProps { } function NotFound ({ basePath, missingApis = [] }: Props): React.ReactElement { - console.log(`Redirecting from route "${basePath}" to "explorer", missing the following APIs: ${JSON.stringify(missingApis)}`); + console.log(`Redirecting from route "${basePath}" to "/explorer"${missingApis.length ? `, missing the following APIs: ${JSON.stringify(missingApis)}` : ''}`); return (