Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh-1602 committed Nov 23, 2023
1 parent 6744076 commit 36b63ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/welcome/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function Page() {
</label>
<input
type="text"
value={userStore.user.name}
value={userStore.user?.name}
onChange={handleNameChange}
className="text-[#8F8F8F] border border-primary_8 rounded-xl p-2 focus:outline-none bg-transparent"
/>
Expand All @@ -74,7 +74,7 @@ export default function Page() {
</label>
<input
type="text"
value={userStore.user.name}
value={userStore.user?.name}
onChange={handleNameChange}
className="text-[#8F8F8F] border border-primary_8 rounded-xl p-2 focus:outline-none bg-transparent"
/>
Expand All @@ -87,7 +87,7 @@ export default function Page() {
<input
type="text"
placeholder="Nick name (optional)"
value={userStore.user.userName}
value={userStore.user ? userStore.user.name : ''}
className="text-[#8F8F8F] border border-primary_8 rounded-xl p-2 focus:outline-none bg-transparent"
id="Username"
/>
Expand Down

0 comments on commit 36b63ba

Please sign in to comment.