From da66f3b051866b8b83de5460d7e2b0ae81828b8b Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 24 Oct 2022 18:27:01 -0700 Subject: [PATCH] Do not display go template tag in dev --- web/components/layouts/Main.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/components/layouts/Main.tsx b/web/components/layouts/Main.tsx index b646767c9..073c43aad 100644 --- a/web/components/layouts/Main.tsx +++ b/web/components/layouts/Main.tsx @@ -67,13 +67,13 @@ export const Main: FC = () => { - {name ? {name} : {`{{.Name}}`}} - {isProduction && ( + {isProduction ? ( + {name ? {name} : {`{{.Name}}`}} @@ -103,6 +103,10 @@ export const Main: FC = () => { + ) : ( + + {name} + )}