From f81d8b46b8ee098103c92b5cc57ce21ffd527ce5 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 31 Jan 2022 23:46:25 -0800 Subject: [PATCH] Resolve warning about unauth state --- components/Header/index.tsx | 5 ++++- components/HeaderMenu/index.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/Header/index.tsx b/components/Header/index.tsx index e00579f9..44bf4269 100644 --- a/components/Header/index.tsx +++ b/components/Header/index.tsx @@ -59,7 +59,10 @@ const Header = (props: Props) => {
- + { (username) ? + : + + }
diff --git a/components/HeaderMenu/index.tsx b/components/HeaderMenu/index.tsx index 02e7c4e6..14ee6cd4 100644 --- a/components/HeaderMenu/index.tsx +++ b/components/HeaderMenu/index.tsx @@ -16,7 +16,7 @@ import AboutModal from '~components/AboutModal' interface Props { - username: string, + username?: string, logout: () => void }