Skip to content

Commit 87e12ec

Browse files
committed
fix: ensure profile readme input handles undefined values gracefully
1 parent 07ccba6 commit 87e12ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/dashboard/settings/_components/ReadmeForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const ReadmeForm: React.FC<Props> = ({ user }) => {
119119
className="focus:outline-none p-2 border bg-background w-full resize-none"
120120
placeholder={_t("Write something stunning...")}
121121
ref={editorRef}
122-
value={form.watch("profile_readme")}
122+
value={form.watch("profile_readme") ?? ""}
123123
onChange={(e) => form.setValue("profile_readme", e.target.value)}
124124
/>
125125
) : (

0 commit comments

Comments
 (0)