Skip to content

Commit cf381f6

Browse files
committed
feat(auth): fix register form state handling
1 parent 16d9c6c commit cf381f6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/app/features/authentication/pages/register/register.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,12 @@ export class RegisterComponent implements OnInit {
104104

105105
this.updateFormState({ isLoading: true });
106106

107+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
108+
const { confirmPassword, ...formValue } = this.registerForm.getRawValue();
109+
107110
this.authService
108111
.register({
109-
...this.registerForm.getRawValue(),
112+
...formValue,
110113
favouritePokemonId: this.pokemonValidator.pokemonId() satisfies number,
111114
} as RegisterFormValue)
112115
.pipe(

0 commit comments

Comments
 (0)