Skip to content

Commit dea1025

Browse files
committed
fix: show settings form when user name is empty
1 parent aa09252 commit dea1025

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/(dashboard)/dashboard/settings/page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ export default async function SettingsPage() {
2525
text="Manage account and website settings."
2626
/>
2727
<div className="grid gap-10">
28-
{user?.name ? (
29-
<UserNameForm user={{ id: user.id, name: user.name }} />
30-
) : null}
28+
<UserNameForm user={{ id: user.id, name: user.name }} />
3129
</div>
3230
</DashboardShell>
3331
)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://twitter.com/shadcn"
88
},
99
"scripts": {
10-
"dev": "concurrently \"contentlayer dev\" \"next dev -p 3001\"",
10+
"dev": "concurrently \"contentlayer dev\" \"next dev\"",
1111
"build": "contentlayer build && next build",
1212
"turbo": "next dev --turbo",
1313
"start": "next start",

0 commit comments

Comments
 (0)