diff --git a/src/components/SideBar.tsx b/src/components/SideBar.tsx index ab69c79..10d5ac4 100644 --- a/src/components/SideBar.tsx +++ b/src/components/SideBar.tsx @@ -85,7 +85,7 @@ const RawGitako: React.FC = function RawGitako(props) { // init again when setting new accessToken useDidUpdate(() => { props.init() - }, [accessToken]) + }, [accessToken || '']) // fallback for preventing duplicated requests const { errorDueToAuth,