fix: update PasswordInput onChange handlers to accept event

This commit is contained in:
Usman Baig
2026-01-23 18:47:14 +01:00
parent 42a07b1c9a
commit 390ca429d9
2 changed files with 6 additions and 6 deletions

View File

@@ -524,7 +524,7 @@ export default function SiteSettingsPage() {
<PasswordInput
id="password"
value={formData.password}
onChange={(value) => setFormData({ ...formData, password: value })}
onChange={(e) => setFormData({ ...formData, password: e.target.value })}
placeholder={site.has_password ? "Change password (leave empty to keep current)" : "Set a password"}
/>
<p className="mt-2 text-xs text-neutral-500">