We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16d9c6c commit cf381f6Copy full SHA for cf381f6
1 file changed
src/app/features/authentication/pages/register/register.component.ts
@@ -104,9 +104,12 @@ export class RegisterComponent implements OnInit {
104
105
this.updateFormState({ isLoading: true });
106
107
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
108
+ const { confirmPassword, ...formValue } = this.registerForm.getRawValue();
109
+
110
this.authService
111
.register({
- ...this.registerForm.getRawValue(),
112
+ ...formValue,
113
favouritePokemonId: this.pokemonValidator.pokemonId() satisfies number,
114
} as RegisterFormValue)
115
.pipe(
0 commit comments