From 571f2a1ce00ac89e1001dc4c6cf278836742e643 Mon Sep 17 00:00:00 2001 From: james hadfield Date: Wed, 15 Jan 2020 12:06:01 +1300 Subject: [PATCH] debug (should be squashed) --- static-site/src/components/nav-bar/index.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/static-site/src/components/nav-bar/index.jsx b/static-site/src/components/nav-bar/index.jsx index 8d3481e23..a7b4b5237 100644 --- a/static-site/src/components/nav-bar/index.jsx +++ b/static-site/src/components/nav-bar/index.jsx @@ -35,7 +35,14 @@ const NavLogoCharacter = styled.span` font-size: 20px; font-weight: 400; cursor: pointer; - color: ${(props) => props.theme.titleColors[props.colorIndex]}; + color: ${(props) => { + try { + return props.theme.titleColors[props.colorIndex]; + } catch (err) { + console.log("ERROR in props.", props, err); + return "black"; + } + }} `; const NavLink = styled((props) => )`