Skip to content

Commit

Permalink
debug (should be squashed)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Jan 14, 2020
1 parent 0a9393c commit 571f2a1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion static-site/src/components/nav-bar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => <Link {...props} />)`
Expand Down

0 comments on commit 571f2a1

Please sign in to comment.