Skip to content

Commit

Permalink
fix: add fallback page title when first name is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Feb 27, 2024
1 parent 571e269 commit c5ec2b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/home/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ const Home = () => {

return (
<PageContainer>
<PageHeader header={t('home.page_title', { name: user.firstName })} />
<PageHeader
header={
user.firstName
? t('home.page_title', { name: user.firstName })
: t('home.document_title')
}
/>
<Grid container spacing={3}>
<Grid item xs={12} md={6}>
<Stack spacing={3}>
Expand Down

0 comments on commit c5ec2b9

Please sign in to comment.