Add a fallback if name is null (#2157)

pull/2158/head
Bailey Pumfleet 2022-03-15 15:42:59 +00:00 committed by GitHub
parent 47c2fc3d89
commit fae714bceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
return {
props: {
profile: {
name: user.name,
name: user.name || user.username,
image: user.avatar,
slug: user.username,
theme: user.theme,

View File

@ -100,7 +100,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
return {
props: {
profile: {
name: team.name,
name: team.name || team.slug,
slug: team.slug,
image: team.logo,
theme: null,