proto/trying-alternative-approach
KATT 2021-11-19 12:57:37 +01:00
parent f2e92f830f
commit 9d74d371f2
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export default function User(props: inferSSRProps<typeof getStaticProps>) {
const { t } = useLocale();
const { isReady } = useTheme(query.data?.user.theme);
useEffect(() => {
if (!query.data) {
if (!query.data || !username) {
return;
}
for (const { slug } of query.data.eventTypes) {