Merge pull request #268 from brecert/fix-198

This commit is contained in:
Paul Makles
2021-10-09 23:45:52 +01:00
committed by GitHub
2 changed files with 38 additions and 32 deletions

View File

@@ -113,6 +113,7 @@ export function ModifyAccountModal({ onClose, field }: Props) {
register={register}
showOverline
error={errors.new_password?.message}
autoComplete="new-password"
/>
)}
{field === "username" && (
@@ -129,6 +130,7 @@ export function ModifyAccountModal({ onClose, field }: Props) {
register={register}
showOverline
error={errors.current_password?.message}
autoComplete="current-password"
/>
{error && (
<Overline type="error" error={error}>