Skip to content

Commit

Permalink
welcome message only displays when vehicle is not selected.
Browse files Browse the repository at this point in the history
  • Loading branch information
maksymsagadin committed Aug 21, 2023
1 parent c52409f commit f4493db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ const Dashboard: NextPage = () => {
</Head>
<NavBar />
<Box textAlign={'center'} mt={4} mx={1}>
<Typography variant='h4' component='h1' gutterBottom>
Welcome, {user?.name}
</Typography>

{showVehicles ? (
<>
<Typography variant='h4' component='h1' gutterBottom>
Welcome, {user?.name}
</Typography>
<Box alignItems='center' mb={2}>
<Typography variant='h6' component='h2' gutterBottom>
You have {vehicles?.length} vehicles.
Expand Down

0 comments on commit f4493db

Please sign in to comment.